This puzzle can be found in many places in the internet but was first published by Martin Gardner in his 'Mathematical Recreations' column in Scientific American. It goes like this (this wording is mine, not the original which I don't have to hand.)
Two mathematicians are sitting outside a cafĂŠ, and one say to the other, âI have three children, and the product of their ages is 36. Can you work out their ages?â
âNoâ, say the second mathematician, âI donât have enough informationâ.
âThen what if I tell you the sum of their ages is equal to the number of that house directly opposite?â the first mathematician replies.
âStill not enough informationâ, answers the second.
âWell what if I tell you the oldest is called Bill?â, say the first.
âAha, now I know the ages!â says the second mathematician.
1. Can YOU work out what the ages are? (Solution appears further down.)
2. Can you find a number different for 36 but which would still let the second mathematician deduce the ages if they knew the sum of the ages and the fact that the oldest child is called Bill?

PS The second triple is wrong see comments.