2nd and 4th row block has to be selected.
One row out of 1st, 3rd, and 5th will contain two letters and remaining one one letter.
Selection of one row that contains two letters is done in 3C1 ways.
Now two block can be selected from this row in 3C2 ways.
From each of remaining two rows, one blocks can be selected in 3C1 ways.
Hence, total selections =3C1⋅3C2⋅3C1⋅3C1=81
Number of ways of filling A, A, A, B, B, B=81×6!3!3!
=81×20=1620