After he had solved the math problem, he _____ to deal with