Choose a point o at one end of the pond, connect AO and BO, and extend to c and d, so OC=OA and OD=OB.
Because angle AOB= angle COD, triangle COD is congruent with triangle AOB, and CD=AB.
Measuring the distance of CD is the distance between two villages in AB.