how to figher out how to do a math problem