A fruit basket contains 84 pieces of fruit. The ratio of apples to pears to bananas is 4 : 2 : 1
Work out the number of each type of fruit in the basket.