Write down the solution for this math problem: Solve 3100*z + 658*z - 152*z = 305*z - 165050 for z.
-50