"Jim bought some chocolates and gave half of it to Ken. Ken bought some sweets and gave half of it to Jim. Jim ate 12 sweets and Ken ate 18 chocolates. The ratio of Jimâs sweets to chocolates became 1:7 and the ratio of Kenâs sweets to chocolates became 1:4. How many sweets did Ken buy?"