What is the solution to this math problem?
Solve -390581 + 127934 = 7189*z + 21113 + 406384 for z.
-96