A fruit vendor sells apples and oranges. The total number of pieces of fruit sold at the end of the day was 120. If the number of apples sold was twice the number of oranges sold, how many apples did the vendor sell?