QUESTION: Math problem: Solve 0 = -7*d - d - 40 for d.
ANS: -5
QUESTION: Math problem: Solve 12*r - 83*r + 154 = -1181 - 298 for r.
ANS: 23
QUESTION: Math problem: Solve 5*g - 27 = -12 for g.
ANS: 3
QUESTION: Math problem: Solve 7054 = -150*d + 4804 for d.
ANS:
-15