These two problems are about the order of mathematical operations,

something we didn't cover in my high school maths course.

I hope someone is willing to explain it to me!

Solve the following problems without a calculator:

1. Given the following equation, what is M in terms of a single number?

0 = 6 X 2/3 + (-1)^{6}X (M+3)/(2-4)^{2 }

2. Given the following equation, find the possible values of Q.

-2 = (-2)^{3}+ (-1)^{3 }X 18Q X (Q + 5)/3

A huge thank you in advance!