C, D, P, Q and S are doctors and the rest are teachers. Some terms are to be selected from amongst these eleven persons subject to the following condition :

A, P and U have to be together.

B cannot go with D or R.

E and Q have to be together.

C and T have to be together.

D and P cannot go together.

C cannot go with Q.