Order of operations,In mathematics and computer programming, the order of operations (or operator precedence) is a collection of rules that define which procedures to perform first in order to evaluate a given mathematical expression.P
Parentheses first
E
Exponents (ie Powers and Square Roots, etc.)
MD
Multiplication and Division (left-to-right)
AS
Addition and Subtraction (left-to-right)
Hope it helped ;3