In the diagram, ZM is a straight line. Calculate the value of x.