Two boats leave an island at the same time. One of the boats travels 12 miles east and then 16 miles north. The second boat travels 24 miles south and then 18 miles west. Use the pythagorean theorem to find the distance between the boats.