question: Teacher asked me this: Solve -395 = 12*q + 67*q for q.
++++++++++
answer: -5

question: Teacher asked me this: Solve 57*c + 17 - 74 = 0 for c.
++++++++++
answer: 1

question: Teacher asked me this: Solve -36*d - 1053 = 207 for d.
++++++++++
answer: -35

question: Teacher asked me this: Solve 646 = -1378*p - 289*p + 40654 for p.
++++++++++
answer:
24