order of operations
PEMDAS
do parntheases
then exponents
then mutiply or divide, whichever coms first
then addd or subtract, whichever comes first
so
when doing parenthases, simplify innermost parenthsees first
so
2(18-(5+9)/7)
innermost is (5+9)=14
now we gots
2(18-(14)/7)
we can distribute or multiply the invisible -1 in front of the 14
2(18-14/7)
now divide because division comes before adition
remember that it is -14/7, not just 14/7 because the negative is part of the 14
2(18-2)
now simplify parenthasees
18-2=16
so
2(16)
multiply
32
the result is 32