PEMDAS...parentheses, then exponents, then multiplication/division, finally addition/subtraction...
22+(3^2-4^2) inside the parentheses are exponents, so they are calculated first.
22+(9-16) now you complete the operations inside the parentheses
22+(-7) finally you do your addition/subtraction
22-7
15