Find the value of x in the diagram shown.