A cookery course is divided into two groups. In group X, the average score in the test was 76. In group Y, the average score in the test was 70. If the average score of all 30 trainees in the course was 74, how many trainees are in group X