Q: Solve:
Solve -89 = -20*q + 31 for q.

A: 6

Q: Solve:
Solve -4*q + 2 = -10 for q.

A: 3

Q: Solve:
Solve 399*n = -53*n - 1513 - 3007 for n.

A:
-10