Q: Solve:
Solve 22 = -5*g + 12 for g.

A: -2

Q: Solve:
Solve 7 = p + 9 for p.

A: -2

Q: Solve:
Solve -8 = 8*a + 16 for a.

A:
-3