PEMDAS / BODMAS explained
PEMDAS stands for Parentheses, Exponents, Multiplication, Division, Addition, Subtraction. The UK equivalent BODMAS replaces Parentheses with Brackets and Exponents with Orders. Both describe the same precedence rules. Multiplication and division share the same priority and are evaluated left to right, as do addition and subtraction.
A common mistake is treating PEMDAS as a strict left-to-right sequence where multiplication always comes before division. In reality, multiplication and division are peers: 8 / 2 x 4 is evaluated left to right as (8 / 2) x 4 = 16, not 8 / (2 x 4) = 1.