Possible Duplicate:
Number of permutations where n ≠ position n
In how many ways can 5 messages be posted in 5 envelopes so that no correct message is posted, if each envelope only has one correct message from the 5, and each message only has one correct envelope?
Possible notation: We represent each envelope by an upper-case letter, $A, B, C, D, E$, and each message by a lower-case letter, $a,b,c,d,e$, and denote the positioning of the messages in envelopes as $A_x B_xC_x D_x E_x~$, such that a possible envelope-message configuration might be $A_c B_d C_b D_e E_a~$, with message $c$ being slotted in envelope $A$ and message $d$ being slotted in envelope $B$ etc. The correct message for envelope $A$ is message $a$ etc.
I have a potential solution to this problem, but I'm wondering if there are some alternate, simpler solutions.