He found the answer as he recalled his schooling.
When recalling his education, the solution came to him.