Believe it or not, there is a set order you have to follow when doing math problems, and that order is the order of operations. I break it down for you nice and easy so that you won't get tripped up in the future.
PEMDAS
Parentheses
Exponents
Multiplication
Division
Addition
Subtraction