Solve this math problem

Solve 506*z + 618*z = 938*z - 373 + 1117 for z.
4