During a​ war, Country A led a massive assault on the beach of Country B. The beach is 6.5 miles long. At 5​ AM, a ship was first spotted from either end of the beach. The angle made with the ship from one end of the beach was 52degrees. The angle made with the ship from the other end of the beach was 69degrees. Determine the distance from the ship to either end of the beach at the moment the ship was first spotted.