You should be using in inclusion-exclusion. Count the ways they fill all the rows, add the ways they fill all the columns, and subtract the ways they fill both because you counted them twice.
You should be using in inclusion-exclusion. Count the ways they fill all the rows, add the ways they fill all the columns, and subtract the ways they fill both because you counted them twice.