Write down the solution for this math problem: Solve 1223 - 1331 = -18*z for z.
6