Use PEDMAS.
Notice that Division and Multiplication can be done in 1 step together. Same as Addition and Subtraction.
18+36÷3+(9−6)2
=18+36÷3+32P(arentheses)
=18+36÷3+9E(xponents)
=18+12+9D(ivision) and M(ultiplication)
=39A(ddition) and S(ubtraction)