In how many ways can a student select six classes from three groups if they must take at least two from the first and second groups? Question: Students at school can choose from 16 subjects to study for their Certificate. Seven of these subjects are in group I, six are in group II, and the other three are in group III. Students must study six subjects to qualify for the Certificate. How many combinations of subjects are possible if students must choose 2 subjects from groups I and II, and the remaining subjects could be from
any group. 
Attempt: 
$${7 \choose 2}{6 \choose 2}{12 \choose 2}=20790$$ 
However the answer is $5320$, i'm not to sure what I am doing wrong, can anyone help? 

You're overcounting because in cases where there are more than $2$ subjects in one of groups I and II you could regard any $2$ of them as the ones satisfying the requirements for those groups. So e.g. if you have $3$ in group I, you're overcounting by a factor $\binom32=3$, and if you have $4$ in group I you're overcounting by a factor $\binom42=6$.
