Bridget and Caroline win some money and share it in the ratio 7:3. Bridget gets £40 more than Caroline. How much did they get all together?