Question:
Solve 40 = -10*r - 0 for r..

Answer:
-4

Question:
Solve -6 = -8*f - 22 for f..

Answer:
-2

Question:
Solve 4*g = 5578 - 5602 for g..

Answer:
-6

Question:
Solve 2751 - 1295 = 24*q + 1336 for q..

Answer:
5