Wedi Ata buys 12 apples. He buys 3 times as many oranges as apples. He also buys 3 times as many cherries as oranges. How many pieces of fruit does he buy altogether?