question: Teacher asked me this: Solve -31 + 3 = -27*w - 1 for w.
++++++++++
answer: 1

question: Teacher asked me this: Solve -8*b - 4*b = -12 for b.
++++++++++
answer: 1

question: Teacher asked me this: Solve -1364 = 373*u - 311*u for u.
++++++++++
answer: -22

question: Teacher asked me this: Solve -166*q + 41*q - 377 = 91*q + 161*q for q.
++++++++++
answer:
-1