A man is trying to solve a math problem.