Amy, Beth and Chloe share some money in the ratio 2:5:6 if Chloe gets £24, how much does Amy and Beth get?