how to solve exponent math problem