# What's the answer to these logic puzzles:

**URL:** <https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465>\
**Category:** Factual Questions\
**Created:** [September 25, 2009, 2:57am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465 "2009-09-25T02:57:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Superhal](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Superhal](https://boards.straightdope.com/u/Superhal)\
**Post date:** [September 25, 2009, 2:57am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/1 "2009-09-25T02:57:32Z")

</div>

All are from the movie “[Fermat’s Room](http://en.wikipedia.org/wiki/Fermat%27s_Room)”:

A candy merchant receives 3 opaque boxes. One box contains mint candies, another contains anise candies, and the last box contains a mixture of mint and anise. The boxes are labeled Mint, Anise, and Mixed. All of the boxes are labeled incorrectly. What is the minimum number of candies the merchant will have to sample to correctly label each box?

The fifth enigma is stated as follows: “A student asks his teacher, ‘How old are your three daughters?’ The teacher replies, ‘If you multiply their ages you get 36. If you add their ages you get my house number.’ ‘I am missing a detail,’ protests the student. ‘Oh yes,’ says the teacher, ‘the older one plays piano.’ How old are the 3 daughters?”

The seventh enigma is an elementary algebra problem with a twist. A mother is 21 years older than her son. In 6 years, the son will be one-fifth his mother’s age. The enigma asks what the father is currently doing.

---

<div class="post-metadata">

**Author:** ![Rumor\_Watkins](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Rumor\_Watkins](https://boards.straightdope.com/u/Rumor_Watkins)\
**Post date:** [September 25, 2009, 3:02am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/2 "2009-09-25T03:02:15Z")

</div>

> [@Superhal](#):
>
> All are from the movie “[Fermat’s Room](http://en.wikipedia.org/wiki/Fermat%27s_Room)”:
> 
> A candy merchant receives 3 opaque boxes. One box contains mint candies, another contains anise candies, and the last box contains a mixture of mint and anise. The boxes are labeled Mint, Anise, and Mixed. All of the boxes are labeled incorrectly. What is the minimum number of candies the merchant will have to sample to correctly label each box?
> 
> The fifth enigma is stated as follows: “A student asks his teacher, ‘How old are your three daughters?’ The teacher replies, ‘If you multiply their ages you get 36. If you add their ages you get my house number.’ ‘I am missing a detail,’ protests the student. ‘Oh yes,’ says the teacher, ‘the older one plays piano.’ How old are the 3 daughters?”
> 
> The seventh enigma is an elementary algebra problem with a twist. A mother is 21 years older than her son. In 6 years, the son will be one-fifth his mother’s age. The enigma asks what the father is currently doing.

Some guesses:

1. Don’t know how you can answer the first one without knowing the % of mint and anise in the mixed box

2. 9, 2, 2

3. jerking off to internet porn?

---

<div class="post-metadata">

**Author:** ![Robot\_Arm](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/robot_arm/32/18280_2.png) [@Robot\_Arm](https://boards.straightdope.com/u/Robot_Arm)\
**Post date:** [September 25, 2009, 3:05am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/3 "2009-09-25T03:05:30Z")

</div>

> [@Superhal](#):
>
> All are from the movie “[Fermat’s Room](http://en.wikipedia.org/wiki/Fermat%27s_Room)”:
> 
> A candy merchant receives 3 opaque boxes. One box contains mint candies, another contains anise candies, and the last box contains a mixture of mint and anise. The boxes are labeled Mint, Anise, and Mixed. All of the boxes are labeled incorrectly. What is the minimum number of candies the merchant will have to sample to correctly label each box?

Assuming the merchant knows that all the labels are incorrect, one.

---

<div class="post-metadata">

**Author:** ![Absolute](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Absolute](https://boards.straightdope.com/u/Absolute)\
**Post date:** [September 25, 2009, 3:06am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/4 "2009-09-25T03:06:10Z")

</div>

> [@Superhal](#):
>
> All are from the movie “[Fermat’s Room](http://en.wikipedia.org/wiki/Fermat%27s_Room)”:
> 
> A candy merchant receives 3 opaque boxes. One box contains mint candies, another contains anise candies, and the last box contains a mixture of mint and anise. The boxes are labeled Mint, Anise, and Mixed. All of the boxes are labeled incorrectly. What is the minimum number of candies the merchant will have to sample to correctly label each box?

The minimum is three - he takes two from one box and gets one mint, one anise. Now he knows that one is mixed, and so he needs to take just one from one of the other boxes.

Of course, that’s the minimum - he might not get so lucky.

---

<div class="post-metadata">

**Author:** ![Rumor\_Watkins](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Rumor\_Watkins](https://boards.straightdope.com/u/Rumor_Watkins)\
**Post date:** [September 25, 2009, 3:07am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/5 "2009-09-25T03:07:17Z")

</div>

> [@Absolute](#):
>
> The minimum is three - he takes two from one box and gets one mint, one anise. Now he knows that one is mixed, and so he needs to take just one from one of the other boxes.
> 
> Of course, that’s the minimum - he might not get so lucky.

This assumes the mixture is 50/50

---

<div class="post-metadata">

**Author:** ![Superhal](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Superhal](https://boards.straightdope.com/u/Superhal)\
**Post date:** [September 25, 2009, 3:08am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/6 "2009-09-25T03:08:34Z")

</div>

The first one seems the easiest to me (I completely missed the clue about twins in #2, gj there):

ug…I saw a flaw in my reasoning, I’ll try again.

---

<div class="post-metadata">

**Author:** ![drpepper](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@drpepper](https://boards.straightdope.com/u/drpepper)\
**Post date:** [September 25, 2009, 3:09am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/7 "2009-09-25T03:09:41Z")

</div>

The first one is an old chestnut I’ve seen many a time.

Only one draw is necessary – one draw from the box labelled “mixed” will tell you what solid flavor is in there (ie, if a mint one is drawn, that clearly has to be the “all mint” box).

Once that one is properly labelled, the other two are forced (to continue my example, the one labelled ‘anise’ can’t be anise, and can’t be mint, so that one is in reality the “mixed” one).

The other two I’m not sure about – why couldn’t the ages by 3,3, and 4, or 2,2,9?

(on edit: gikes! beaten by Superhal!)

---

<div class="post-metadata">

**Author:** ![Rumor\_Watkins](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Rumor\_Watkins](https://boards.straightdope.com/u/Rumor_Watkins)\
**Post date:** [September 25, 2009, 3:11am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/8 "2009-09-25T03:11:38Z")

</div>

> [@drpepper](#):
>
> The first one is an old chestnut I’ve seen many a time.
> 
> The other two I’m not sure about – why couldn’t the ages by 3,3, and 4, or 2,2,9?

because 3 and 4 year olds don’t play the piano?

---

<div class="post-metadata">

**Author:** ![Superhal](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Superhal](https://boards.straightdope.com/u/Superhal)\
**Post date:** [September 25, 2009, 3:13am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/9 "2009-09-25T03:13:38Z")

</div>

3 boxes with incorrect “labels”:  
#1. “Mixed” (Must be anise or mint)  
#2. “Mint” (Must be anise or mixed)  
#3. “Anise” (Must be mint or mixed.)

Obviously, we must sample the “mixed” box, as this will tell us exactly what is actually in it, as it can’t be mixed. Let’s say anise.

Now we have:  
#1. Anise.  
#2. “Mint” (must be Mint or Mixed.)  
#3. “Anise” (Must be Mint or Mixed.)

Box #2 must be Mixed, as the label must be incorrect. That leaves Mint as the “anise” box.

---

<div class="post-metadata">

**Author:** ![Scarlett67](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/scarlett67/32/7387_2.png) [@Scarlett67](https://boards.straightdope.com/u/Scarlett67)\
**Post date:** [September 25, 2009, 3:13am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/10 "2009-09-25T03:13:51Z")

</div>

First one:

The minimum is one. Taste a candy from the box labeled “Mixed.” It will be either mint or anise. You know that this box is labeled incorrectly, so put either the “Mint” or “Anise” label on that box. Whichever one of “Mint” and “Anise” is left is the “Mixed” box. The last box gets the final label, whichever flavor the “Mixed” box was not.

Second one:

Yes, 9, 2, and 2 is correct. But another possible answer for the factors of is 6, 6, and 1, which is why the student needed to know that there is only one “older” daughter.

Third one:

I did the algebra, and the son is currently aged minus 9 months. What the father is doing right now is left as an exercise to the reader.

---

<div class="post-metadata">

**Author:** ![friedo](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@friedo](https://boards.straightdope.com/u/friedo)\
**Post date:** [September 25, 2009, 3:16am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/11 "2009-09-25T03:16:15Z")

</div>

> [@Rumor\_Watkins](#):
>
> This assumes the mixture is 50/50

It doesn’t matter - even if the mixture is 99/1, three samples is still the _minimum_ required to make the determination.

---

<div class="post-metadata">

**Author:** ![Superhal](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Superhal](https://boards.straightdope.com/u/Superhal)\
**Post date:** [September 25, 2009, 3:18am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/12 "2009-09-25T03:18:03Z")

</div>

\>\>Yes, 9, 2, and 2 is correct. But another possible answer for the factors of is 6, 6, and 1, which is why the student needed to know that there is only one “older” daughter.

But, how is 4, 3, 3 eliminated?

---

<div class="post-metadata">

**Author:** ![Rumor\_Watkins](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Rumor\_Watkins](https://boards.straightdope.com/u/Rumor_Watkins)\
**Post date:** [September 25, 2009, 3:18am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/13 "2009-09-25T03:18:55Z")

</div>

> [@friedo](#):
>
> It doesn’t matter - even if the mixture is 99/1, three samples is still the _minimum_ required to make the determination.

nm i re read what you said.

---

<div class="post-metadata">

**Author:** ![Superhal](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Superhal](https://boards.straightdope.com/u/Superhal)\
**Post date:** [September 25, 2009, 3:21am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/14 "2009-09-25T03:21:20Z")

</div>

Hi. 🙂

---

<div class="post-metadata">

**Author:** ![bouv](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@bouv](https://boards.straightdope.com/u/bouv)\
**Post date:** [September 25, 2009, 3:23am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/15 "2009-09-25T03:23:23Z")

</div>

> [@Scarlett67](#):
>
> First one:  
> Second one:
> 
> Yes, 9, 2, and 2 is correct. But another possible answer for the factors of is 6, 6, and 1, which is why the student needed to know that there is only one “older” daughter.

As someone upthread suggested, couldn’t you have “3, 3, and 4”?

This still leaves toy with just one “older” daughter, and while it’s unlikely that a four year old can play the piano, it’s not outside the realm of possibility.

---

<div class="post-metadata">

**Author:** ![Rumor\_Watkins](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Rumor\_Watkins](https://boards.straightdope.com/u/Rumor_Watkins)\
**Post date:** [September 25, 2009, 3:24am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/16 "2009-09-25T03:24:56Z")

</div>

> [@bouv](#):
>
> As someone upthread suggested, couldn’t you have “3, 3, and 4”?
> 
> This still leaves toy with just one “older” daughter, and while it’s unlikely that a four year old can play the piano, it’s not outside the realm of possibility.

It may be known in the movie that the house number is 13.

---

<div class="post-metadata">

**Author:** ![treis](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@treis](https://boards.straightdope.com/u/treis)\
**Post date:** [September 25, 2009, 3:27am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/17 "2009-09-25T03:27:47Z")

</div>

> [@Superhal](#):
>
> \>\>Yes, 9, 2, and 2 is correct. But another possible answer for the factors of is 6, 6, and 1, which is why the student needed to know that there is only one “older” daughter.
> 
> But, how is 4, 3, 3 eliminated?

Well 4 year olds don’t play the piano really either. Instead of 9, 2, and 2 I see no reason why it couldn’t be 9, 4, and 1. Or 6, 3, and 2.

---

<div class="post-metadata">

**Author:** ![panache45](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/panache45/32/64_2.png) [@panache45](https://boards.straightdope.com/u/panache45)\
**Post date:** [September 25, 2009, 3:28am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/18 "2009-09-25T03:28:42Z")

</div>

> [@Superhal](#):
>
> The seventh enigma is an elementary algebra problem with a twist. A mother is 21 years older than her son. In 6 years, the son will be one-fifth his mother’s age. The enigma asks what the father is currently doing.

This depends on whether he’s the biological father.

---

<div class="post-metadata">

**Author:** ![Nicolas\_Bourbaki](https://avatars.discourse-cdn.com/v4/letter/n/ecc23a/32.png) [@Nicolas\_Bourbaki](https://boards.straightdope.com/u/Nicolas_Bourbaki)\
**Post date:** [September 25, 2009, 3:29am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/19 "2009-09-25T03:29:25Z")

</div>

> [@Superhal](#):
>
> \>\>Yes, 9, 2, and 2 is correct. But another possible answer for the factors of is 6, 6, and 1, which is why the student needed to know that there is only one “older” daughter.
> 
> But, how is 4, 3, 3 eliminated?

Or 36, 1, 1, for that matter.

---

<div class="post-metadata">

**Author:** ![Superhal](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Superhal](https://boards.straightdope.com/u/Superhal)\
**Post date:** [September 25, 2009, 3:33am UTC](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465/20 "2009-09-25T03:33:02Z")

</div>

Here’s all the puzzles:  
Each of the enigmas relayed through the PDA have a one-minute deadline and a simple solution—that is, they do not rely upon any advanced mathematical knowledge. After the candy puzzle, the second enigma is a series of 169 ones and zeros which, when placed in a 13-by-13 square and interpreted as pixels, form an image of a skull.

The third enigma describes a sealed room containing one light bulb. Outside of the room there are three switches, only one of which operates the bulb. The puzzle solver begins outside the room, able to operate the switches in any way he sees fit, but when the door is opened for the first time, he must determine which switch operates the light. The enigma is to determine how this is to be done.

The fourth enigma is to describe how one can use a four-minute hourglass and a seven-minute hourglass to measure a period of nine minutes.

The fifth enigma is stated as follows: “A student asks his teacher, ‘How old are your three daughters?’ The teacher replies, ‘If you multiply their ages you get 36. If you add their ages you get my house number.’ ‘I am missing a detail,’ protests the student. ‘Oh yes,’ says the teacher, ‘the older one plays piano.’ How old are the 3 daughters?”

The sixth enigma is a Knights and Knaves puzzle. Two doors are guarded by two men, one of whom always lies and one of whom always tells the truth; however, the puzzle solver does not know which man is which. One of the doors leads to freedom and one to captivity. The enigma is to determine a single question that, if asked of one of the guards, would reveal the door to freedom with certainty.

The seventh enigma is an elementary algebra problem with a twist. A mother is 21 years older than her son. In 6 years, the son will be one-fifth his mother’s age. The enigma asks what the father is currently doing.

[Next page](https://boards.straightdope.com/t/whats-the-answer-to-these-logic-puzzles/511465.md?page=2)
