Problem: Solve 823 = 31*z + 978 for z.
And the answer is...
-5