PEMDAS

Usage notes
This mnemonic leads many to the error that multiplication has precedent over division, and addition over subtraction; however, these are within the pairs equal in precedence and resolved from left to right. (E.g., 6 − 3 + 2 = (6 − 3) + 2, 6 / 3 × 2 = (6 / 3) × 2, so here subtraction is done before addition, and division is done before multiplication.)