We have:
7 students from the junior class
10 students from the senior class
So:
We need 5 from the senior class
There are a total of 17 students so. the ones that can be any grade are:
[tex]17-6=11[/tex]since you need a total of 8 students in the committee and 5 have to be in the categories described above, that leaves:
[tex]8-6=2[/tex]That can be any grade.
Therefore:
[tex]C(8,6)*C(11,2)=28*55=1540[/tex]Where the combination formula is given by:
[tex]C(n,k)=nCk=\frac{n!}{k!(n-k)!}[/tex]