A point D on Denmark's largest island is 2.4 miles from the nearest point S on the coast of Sweden (assume the coast is straight, which is nearly the case). A person in a motorboat travels straight from D to a point on the beach x km from S and then travels x km farther along the beach away from S. Find x if the person traveled a total of 4.5 miles.