If the students will join the party, then the combination will be,
C1=22C7
=170544
If the students will not join the party, then the combination will be,
C2=22C10
=646646
The number of ways that the excursion party can be chosen as,
C=C1+C2
=170544+646646
=817190