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.