QUESTION: Math problem: Solve 0 = d + 7 - 10 for d.
ANS: 3
QUESTION: Math problem: Solve 330*x + 399*x + 9891 = -24372 for x.
ANS: -47
QUESTION: Math problem: Solve 2*z + 2*z - z = 0 for z.
ANS: 0
QUESTION: Math problem: Solve -8 + 51 + 31 = -84*q - 10 for q.
ANS:
-1