QUESTION: Math problem: Solve 791*d + 40 = 786*d for d.
ANS: -8
QUESTION: Math problem: Solve 106755*p = 107080*p - 21450 for p.
ANS: 66
QUESTION: Math problem: Solve -312 = -120508*g + 120495*g for g.
ANS: 24
QUESTION: Math problem: Solve -197 = 42*r + 223 for r.
ANS:
-10