How to solve a math problem