Solve 40*q + 31*q = -137 - 5 for q.
-2