A man walks into a bar, orders a drink, and starts chatting with the bartender. After a while, he learns that the bartender has three children. "How old are your children?" he asks. "Well," replies the bartender, "the product of their ages is 72." The man thinks for a moment and then says, "that's not enough information." "All right," continues the bartender, "if you go outside and look at the building number posted over the door to the bar, you'll see the sum of the ages." The man steps outside, and after a few moments he reenters and declares, "Still not enough!" The bartender smiles and says, "My youngest just loves strawberry ice cream."

How old are the children?

In a variant of the problem, it is the oldest child that likes ice cream. Then either the product is 36 or the sum of the ages is 13 and the product of the ages is the number posted over the door.

Then how old are they?

Children Solution
