What is the solution to this math problem?
Solve -40 = -9*d + 56 - 123 for d.
-3