The diagonal is the hypotenuse of a right triangle with the pool's sides as legs.
d2=625+144=769
Since 27.72=767.29 is less than 769 and the halfway value gives 27.752=770.0625, which is more, 769 lies between 27.7 and 27.75, so it is about 27.7 m. The choice about 21.9 m comes from subtracting.