Problem

Source: Tournament of Towns 2007 - Fall - Junior O-Level - P5

Tags:



The audience chooses two of five cards, numbered from $1$ to $5$ respectively. The assistant of a magician chooses two of the remaining three cards, and asks a member of the audience to take them to the magician, who is in another room. The two cards are presented to the magician in arbitrary order. By an arrangement with the assistant beforehand, the magician is able to deduce which two cards the audience has chosen only from the two cards he receives. Explain how this may be done.