I’m a land-lubber myself - so I can only guess he could see the shore 9 miles away to know which direction to swim?
Follow the sun/moon.