The male advocates are A and B; male doctors are C and D; lady doctors are P, Q and S; teachers are E, T and U.
If A is selectes, P and U will be selected, D and P cannot go together. So, a male doctor C will be selected. C and T have to be together. Thus, the team is A C P T U. If B is selected , D will not be selected. So, male doctor C will be chosen. C and T have to be together. Now, the second teacher to be selecteis E and U. But U cannot go without A. So, wil be selected. E and Q have to be together. Thus, the team can also be B C E Q T.