Calculate the value of Y in the diagram