In all, we have 8 squares in which 6 ' X ' have to be placed and it can be done in 8C6=28 ways.
But this includes the possibility that either the top or horizontal row does not have any ' X '. Since, we want each row must have atleast one ' X ', these two possibilities are to be excluded.
Hence, required number of ways =28−2=26