If two of the members are girls and D is one of the members, then the members of the team other than Dare:
A team of five is to be selected from amongst five boys A, B, C, D, and E and four girls P. Q. R. and S. Some criteria for selection are:A & S must be together in a team. P cannot be put with R.
D and Q cannot go together. C and E have to be together. R cannot be put with B.