In poker, a pair is formed from two cards of the same rank. A hand with 5 cards is called two pairs if it has two pairs of cards of different ranks, and a fifth card that does not match either pair. (For example, the hand KK338 has two pairs.) How many ways can you be dealt 5 cards and get two pairs? (Assume that we are using a standard deck of 52 cards, and that the order of the cards does not matter.)
There are 13*3 possibilities for the first pair, leaving 12*3 possibilities for the 2nd pair, leaving 11*4 possibilities for the singleton. So: 13*3*12*3*11*4 = 61776 in total.