Q: Solve:
Solve -17*p + 3*p - 1197 = -1127 for p.

A: -5

Q: Solve:
Solve 0 = -178*p + 121*p + 57 for p.

A: 1

Q: Solve:
Solve 0 = -349*q + 359*q + 9 - 39 for q.

A:
3