I stumbled across this word problem and am confused about the answer. The answer uses a table providing the different cases of exact number of matches and the corresponding possible ways to achieve the number of matches.
I tried solving for the number of ways for one match and I know that the 5 choose 1 combination comes from having only 1 match but I don't fully understand why there are 9 ways to arrange the 4 other cards.