The math teacher was attracted to the applied and disciplined student.