The track team won a total of 18 medals. Three of the medals were gold. There were twice as many bronze medals as silver medals. How many bronze medals did the track team win?