A team of four students has to be selected from A, B, C, D, E, F and G, according to the following

A team of four students has to be selected from A, B, C, D, E, F and G, according to the following:

B will not be with F.
A and C must be together.
E will not be with A.
G and D must be together.
F will not be with G.

A team can consist of:

  • ABCE
  • BDEG
  • BDFA
  • DEAG