Q: Solve:
Solve 23485*m = 21708*m + 40871 for m.

A: 23

Q: Solve:
Solve -84*g - 17*g = 469 - 65 for g.

A: -4

Q: Solve:
Solve -112*r + 18*r - 21*r = 49*r + 8692 for r.

A:
-53