2019 Mock AMC 10B Problems/Problem 21
Solution 1: Author:(Shiva Kannan)
There are ways to place one of each and in the top row. For the second row, we must count all the possible arrangements other than the arrangements in which the value in the first row and a particular column and the value in the second row and that same column, never are the same. The total number of ways regardless of the condition is . We can use PIE. 113! = 66424122! = 2222* {4 \choose 2} = 1231334124 - 24 + 12 - 4 + 1 = 99$ ways to construct the second row.