This rule is known as PEMDAS
In an algebraic equation follow PEMDAS
P= first calculate anything with parantheses
E= then calculate anything with exponents
M= calculate any multiplication
D= calculate any division
A= calculate any addition
S= calculate any subtraction
you must do these in that order
hope this helps:)