The doctors are A, B, C, D and E; male engineers are K and L; teachers are M, N, O, P, Q and R. Clearly, the two male engineersto be selected are K and L.
Since male engineers are selected, so female doctors i.e. A and B cannot be selected.
Thus, three doctors to be selected are C, D and E. The doctors selected are all males. So, female teachers O, P and Q cannot be selected. Thus, two teachers out of M, N and R are to be selected.