A math teacher is solving a problem.