Notice that we have a right triangle drawn on the diagram, then, we can assume that the length of the point is the hypotenuse of the triangle, so we can use the pythagorean theorem to find this lenght:
therefore, the length of the pond from point X to point Y is 39 meters