Question: Sum Sam and Product Pete are in class when their teacher gives Sam the Sum of two numbers and Pete the product of the same two numbers (these numbers are greater than or equal to 2). They must figure out the two numbers.
Sam: I don't know what the numbers are Pete.
Pete: I knew you didn't know the numbers... But neither do I.
Sam: In that case, I do know the numbers.
What are the numbers?
Answer: The numbers are 3 and 4.
Since Sam knows the sum of the numbers (x + y) he would only know the answer immediately if the sum was 4 (2 + 2) or 5 (3 + 2). Then when Pete (who knows x*y) knew that Sam didn't know the answer the product must have several numbers that add up to the sum (7 = 3 + 4, 7 = 5 + 2). When Pete doesn't know the answer at this point we know the product must have more than one pair of viable factors (12 = 3 * 4, 12 = 6 * 2). At this point Sam knows the numbers are 3 and 4 because they are the only numbers that meet these criteria.
Question: There were 2 doors. Behind the 1 door, is hell and behind the other door, is heaven but you don't know which door will take you to heaven. In front of them, there were 2 brothers, which is guarding the door. One of the brother always lie and the other one always tell the truth. Of course you don't know who is lying and who is not. You only get 1 question to ask one of them to figure out which door leads to heaven. What question you might ask? Remember you only get to ask 1 question. it means that you can't ask one question each of them. that will be 2 questions. You only ask 1 question to any of them and no more. How do you do that?
Answer: Go up to one of the guy and ask this question, " Hello, which door that your brother will point if I ask him which way is the heaven." Then take the other door. Don't enter the door that he was pointing. This question will work for both of them because if you ask this question to the truth guy, he will point the hell because he knows that his brother will point hell and if you asked to the liar, he'll still point hell because he knows that his brother will point to heaven door, so he lied. That's why you take the other door.