The diagram shows two pairs of angles lying on a straight line. Please remeber that angles on a straight line equals 180. Also you can observe two pairs of vertically opposite angles, and vertically opposite angles are equal. Hence, the angle opposite angle z also equals z. This means angles 9x - 17 and z (to the right) lie on a straight line. Similarly angle 12x - 62 and z (to the left) also lie on a straight line. Therefore;
Therefore, x = 15 and z = 62