The Math Puzzle Solver: A Comprehensive Approach to Problems