The correct option is B 26
In all, we have 8 squares in which six ′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 at least one X, these two possibilites are to be excluded. Hence, required number of ways =28−2=26