Q: Solve:
Solve -394*s = -1242*s + 4031 - 29471 for s.

A: -30

Q: Solve:
Solve 0 = -125*w - 6641*w + 60894 for w.

A: 9

Q: Solve:
Solve 0 = -243*n - 601 - 128 for n.

A:
-3