Overall permutations = 8P6
If top and the middle rows are filled completely or if top and the bottom rows are filled completely then we have empty rows. These cases must be subtracted.
Hence, 8P6 - 6! -6! number of ways.
Overall permutations = 8P6
If top and the middle rows are filled completely or if top and the bottom rows are filled completely then we have empty rows. These cases must be subtracted.
Hence, 8P6 - 6! -6! number of ways.