Q: What is the solution?
Solve 186 = 39*p + 732 for p.

A: -14

Q: What is the solution?
Solve 277*g = -218*g - 3112 + 142 for g.

A: -6

Q: What is the solution?
Solve -1198*w = -1542*w - 1376 for w.

A:
-4