Points X, Y and Z are located in the same horizontal plane such that Y…