Solve mathematical problems