What is the solution to this math problem?
Solve -346 + 389 = 105*z - 2462 - 1065 for z.
34