A fruit basket contains apples, bananas, and cherries. The number of apples is three times the number of bananas. If the number of cherries is 12 less than the number of apples, and there are a total of 69 fruits in the basket, how many apples are there?