A committee of five members is to be formed out of 3 trainees, 4 professors and 6 research associates. In how many different ways this can be done if the committee should have all the 4 professors and 1 research associate or all 3 trainees and 2 professors