The ratio of apples to oranges in a fruit basket is 6 to 2. How many apples were in the basket if there were 54 oranges in the basket?