Q: Solve:
Solve -31 = -9*k + 5 for k.

A: 4

Q: Solve:
Solve 8*g + 47*g = 495 for g.

A: 9

Q: Solve:
Solve -26*z - 261 + 11 = -16 for z.

A:
-9