Question 1175935
.


From the total number of all possible pairs  (B,G),  which is  5*8 = 40,


exclude  (subtract)  all  PROHIBITED  pairs.