question: Teacher asked me this: Solve 402 - 2474 = -171*r + 664 for r.
++++++++++
answer: 16

question: Teacher asked me this: Solve -38*g = -42*g + 16 for g.
++++++++++
answer: 4

question: Teacher asked me this: Solve 17*d - 7*d + 30 = 0 for d.
++++++++++
answer: -3

question: Teacher asked me this: Solve 28*w + 121*w = -1508764 + 1489245 for w.
++++++++++
answer:
-131