In a basket, there are a total of 36 fruits consisting of apples and oranges. If the number of apples is twice the number of oranges, how many apples are in the basket?