question: Teacher asked me this: Solve -71 = -40*x - 251 - 860 for x.
++++++++++
answer: -26

question: Teacher asked me this: Solve 57 + 117 = -87*g for g.
++++++++++
answer: -2

question: Teacher asked me this: Solve -350*p - 1029 = 721 for p.
++++++++++
answer: -5

question: Teacher asked me this: Solve 42900 = -371*o + 4164 - 4671 for o.
++++++++++
answer:
-117