This is why you have to post the full question (including diagram or thorough description of it so that anyone can understand), because I don't have your textbook in front of me. The "diagram" I posted above follows all the given constraints, but finding XY is impossible.