Two boys A and B tell the teacher a positive integer each, but neither of them know the other's number. The teacher writes two positive integers on the blackboard and declares that one of them is the sum of the two numbers.
Then he asks A, "can you guess the sum of the two numbers?" If the answer is "no" then the teacher asks B the same question. Suppose the boys are truthful and intelligent. Prove that one of the answers will eventually be "yes".
I am absolutely clueless about where to start. I tried taking some examples to see if the answer actually comes yes, but it seems that the boys are more intelligent than me!
A useful way to think of the problem is to imagine the two boys aren't told their numbers, but instead are each given a box with some number of coins in it, told to privately count their coins, and then the teacher writes two (positive) numbers on the board, one of which is the correct total number of coins between the two boxes. Furthermore, each time a boy answers "No," the teacher takes a coin from that boy's box, and, correspondingly, decrements the two written numbers each by one (since everyone knows that a coin has been removed).
It's now clear this cannot go on forever. In particular, as soon as one boy's box is empty and the two written numbers are, say $M$ and $N$, with $M\lt N$, that boy knows the other boy will say "Yes" if his box has $N$ coins in it (because he'll know the total cannot be less than the number of coins in his box), so if he says "No," his box must have $M$ coins in it, after which the boy with the empty box will be able to say "Yes" on his next turn.