Solving the math set of problems