There were some sweets in Bags A, B and C. Tom moved 1/3 of the sweets in Bag A to Bag B. Later, he moved 2/5 of the sweets in Bag B to Bag C. In the end, each bag contained 36 sweets. Find the ratio of the number of sweets in Bags A, B and C at first.

well, it's now very easy to find A.

2/3 A = 36
A = 54
Now use that to find B and C