After making the swim team, Farrah purchased a swimsuit, a swim cap, and a pair of goggles. The swimsuit was twice as much as the goggles, and the swim cap was half the price of the goggles. If the total cost of the items were $59.50, what was the price of the swimsuit?