Q: Solve:
Solve 3531 - 498 = -1044*d - 1143 for d.

A: -4

Q: Solve:
Solve 0 = 3*q - 54 + 51 for q.

A: 1

Q: Solve:
Solve -180 = 9*q - 117 for q.

A:
-7