Write down the solution for this math problem: Solve 2514*z + 508*z = 654*z - 154422 + 31286 for z.
-52