Write down the solution for this math problem: Solve -9*w + 1786 = -16*w - 40*w for w.
-38