The answer is -1953062.
Substitute the value of q into the expression.
(34+18·2)-(5⁹+7)
Using the rules of pemdas, first solve the exponent.
(34+18·2)-(1953125+7)
Then complete the multiplication.
(34+36)-(1953125+7)
Then add and subtract from left to right.
70-1953132
-1953062