If a basket is capable of holding 40 fruit altogether, and there are 3 times as many apples as oranges, how many oranges are there?