Write down the solution for this math problem: Solve 162*z - 4185 - 427 + 562 = 0 for z.
25