Jim and Krutika win some money and share it in the ratio 3:1. Jim gets £40 more than Krutika.
How much did they get altogether?