have you ever heard of the order of operations
Different places teach it different ways.
The phrase used at my school was BODMAS.
Brackets, Orders (powers of), Division, Multiplication, Addition, Subtraction.
Multiplication and Division however are usually seen as being of equal precedence, so they can be changed.
So some places do BOMDAS.
Brackets, Orders, Multiplication, Division, Addition, Subtraction.
Usually that's not an issue, but in some cases like this, it means you can get two different answers depending on which you do first.