Knowing order of operations in mathematics is fundamental. PEMDAS is often used to remember that order. Parentheses, exponents, multiplication/division, addition/subtraction. Although in this case it is pretty straight forward.
22+(32-42)
22+(-10)
22-10
12