Samir goes to a farmers market to buy some fruit. He fills a large bag with 24kg of apples. He realises that he cannot carry this weight,so puts some of the apples into a smaller bag. The weight of the apples in the large bag is 6kg larger than the smaller bag. What is the weight of the smaller bag