There are six boxes containing 5, 7, 14, 16, 18, 29 balls of either red or blue in colour. Some boxes contain only red balls and others contain only blue.
One sales man sold one box out of them and then he says, "I have the same number of red and blue balls left over."
The total number of balls: 5 + 7 + 14 + 16 + 18 + 29 = 89.
Total number of balls are odd. Also, there are the same number of red balls and blue balls are left out after selling one box. That can only happen if the remaining number of balls is even, so a box with odd number of balls in it must have been sold out (5, 7 or 29).
Now using trial and error:
(89-29) /2 = 60/2 = 30
and
14 + 16 = 5 + 7 + 18 = 30
More checking reveals that this does not work for the 5- or 7-ball boxes.
So the box with 29 balls was sold out, leaving 16+14=30 of one color and 5+7+18=30 of the other.
Comments: (
You must be logged in to post comments.)