Solving the Math Problem