Danielle and Inder brought apples, bananas, and oranges to a fruit sale. The bananas were sold for $0.50 each, while the apples and oranges were sold for $0.75 each. They sold 50 pieces of fruit and earned $33.50 total. If Danielle and Inder sold twice as many bananas as oranges, how many apples did they sell?