Write down the solution for this math problem: Solve -268*z + 8723 + 310 = -5171 for z.
53