Removed unused variable from solveMath