Correct option is A
A group of seven students A, B, C, D, E, F and G are going to form two teams. Each team can have a maximum of four members.
D and G have to be together. = DG
E and D have to be together. = EDG
A has to be with F. = AF
C cannot be with E = ACF
F and D cannot be together - Two case (ACF) and (EDG)
A and B cannot be in the same team = (ACF) and (BEDG)
only BEDG matches with the option a.