From amongst five doctors A, B, C, D and E, four engineers G, H, K and L and six teachers M, N, O, P, Q and R, some teams are to be selected. Of these, A, B, G, H, O, P and Q are females and the rest are males.
The formation of teams is subject to the following conditions :
Wherever there is a male doctor, there will be no female teacher.
Wherever there is a male engineer, there will be no female doctor.
There shall not be more than two male teachers in any team.
If the team consists of two doctors, three females teachers and two engineers, the members of the team are :
The docotors are A, B, C, D and E; female teachers are O, P and Q; engineers are G, H, K and L. The three female teachers to be selected are O, P and Q.
Now, where there is a male doctor, there will be no female teacher. But three female teachers are selecred. So, C, D and E cannot be selected. Thus, two doctors selected are A and B.
Since female doctors are selected, so male engineers Kand L cannot be selected.
Hence, the team formed is A B O P Q G H.