Relax 10/04/2025 20:06

Open the Right Doors to Win a Car

Open the Right Doors to Win a Car

Two people are allowed to open 2 out of 3 doors. If behind those doors are the car and the car key, they win the car.

Alex Bellos presented this riddle on The Guardian as follows:

 

 

Twin brothers Timmy and Tammy are contestants on a game show. They will take turns opening 2 out of 3 doors. Behind the doors are a car, a car key, and a goat, placed randomly. They don't know which item is behind which door.

Timmy goes on stage first. He opens 2 of the 3 doors, then closes them again and exits to a separate room. Then Tammy comes on stage and also opens 2 of the 3 doors.

If Timmy opens the door with the car and Tammy opens the door with the key, the twins win the car. In all other cases, they win nothing.

The twins are given 10 minutes beforehand to plan a strategy to maximize their chances of winning.

What should their strategy be, and what is the highest probability they can achieve?


Solution:

There are 3 doors, and behind them randomly are:

  • A car (C)

  • A key (K)

  • A goat (G)

Let’s label the doors: A, B, and C.

Timmy goes first. He opens any 2 doors, sees what’s behind them, closes them, and leaves. Then Tammy opens 2 doors. They win only if Timmy opens the door with the car and Tammy opens the door with the key.

Here's the challenge: Tammy doesn’t know what Timmy saw, and they can't communicate. So their only chance is to agree on a strategy beforehand that allows Tammy to deduce where the key is based on which doors she opens and what she finds.

Let’s think carefully. The total number of ways to randomly assign C, K, G behind 3 doors is 6 (3! permutations):

  1. C-K-G

  2. C-G-K

  3. K-C-G

  4. K-G-C

  5. G-C-K

  6. G-K-C

Each placement is equally likely.

Key Insight:

Timmy sees the contents behind 2 doors. That means he knows 2 out of the 3 items (but not necessarily their exact identities, unless he sees both the car and the key).

Timmy’s role is to encode information by which 2 doors he chooses to open. That way, Tammy, by following the agreed strategy, can infer where the key is, depending on what she finds.

Let’s define a strategy:

  • The twins agree to map each of the 6 permutations to a specific pair of doors Timmy will open.

  • When Timmy sees a configuration (e.g., he sees the car and goat), he uses a code to select 2 doors that encode where the key is.

  • Tammy then uses the agreed strategy to decode Timmy’s message and pick the right door for the key.

It turns out this is possible.

What’s the maximum probability?

Because there are 6 possible assignments of C, K, and G to 3 doors, and Timmy can choose 3 possible pairs of doors to open (3 choose 2 = 3 combinations: AB, AC, BC), but each pair could be ordered or interpreted in different ways (e.g., based on order of opening, or what is revealed), it is possible to construct a coding strategy that covers all 6 cases uniquely.

So:
βœ… With a well-designed strategy, they can always win.
🎯 The maximum probability of success is 100%.


Conclusion:

The twins can win the car 100% of the time if they use a clever encoding-decoding strategy agreed upon before the game. Timmy uses the two doors he opens to encode the location of the key, and Tammy uses their strategy to decode and find it.

News in the same category

News Post