Problem

Source: Tournament of towns,juniors

Tags: Game Theory, Magician, algorithms, combinatorics



A magician and his assistent are performing the following trick.There is a row of 12 empty closed boxes. The magician leaves the room, and a person from the audience hides a coin in each of two boxes of his choice, so that the assistent knows which boxes contain coins. The magician returns, and the assistant is allowed to open one box that does not contain a coin. Next, the magician selects 4 boxes, which are simultaneously opened. The goal of the magician is to open both boxes that contain coins. Devise a method that will allow the magician and his assistant to always succesfully perform the trick.