A rich uncle of Jack, John and Jim gave them some valuable coins in the ratio A:B:C respectively, where C≤B≤A<10. For example, if the ratio is 3:2:1 and there is a total of 36 coins, then Jack would get 18, John would get 12, and Jim would get 6. At first, he distributed the coins randomly among the three, but the ratio was not A:B:C. Jack returned a number of coins equal to the percentage that he was supposed to receive. So (using the same ratios) if he got 30 coins, he returned 15 (50%). John and Jim returned coins in a similar fashion. Uncle then divided all the returned coins equally among the three. Believe it or not, the coins each had after this ended up exactly A:B:C.

Tom: And that, Dick, is what happened. Uncle gave out the minimum number of coins possible for that ratio, and for this strange method of distribution.

Dick: How many coins did Uncle give out?

Tom: This many (shows him a number)

Dick: And how many did each nephew receive?

Tom: Figure it out yourself.

Dick: Ok, I need hints.

Tom: Only one of them received that number over here (points to a day in his calendar).

And before even seeing the number, Dick shouts "GOT IT!" How many coins did each receive?