Respuesta :

Using the Pythagorean theorem, the diagonal measure is found as
  √((18 m)² +(24 m)²) = √(324 +576) m = √900 m
  = 30 m

You would be swimming 30 meters.