Apply Order of Operations rules: P is for Parenthesis, and anything in parenthesis should be done first.
Followed by Exponents
Following now is Multiplication and Division, and this is special because it’s not that one needs to be done before the other, these are just worked from left to right.
Finally, Addition and Subtraction work the same way as Multiplication and Division. So, these will also be done from left to right, but these will be the last things done when simplifying an expression.
Our problem: $1042_w124_h21.png$
Subtract: 3 −8 = −5.
Apply the exponent: $1263_w86_h21.png$
= 3 + 25 − 7
Subtract: Add the opposite
= 3 + 25 + (−7)
Add: 3 + 25 = 28.
= 28 + (−7)
Add: 28 + (−7) = 21.