Put 34 in place of the z. The problem is basically asking what equation can you do to get -24?
2 + 8 - 34 = -24