It is given that 9 courses are available from which 2 courses are compulsory.
Since 2 courses are compulsory, thus the subjects remained are 7 and also from the 5 courses that are to be chosen has 2 courses compulsory which results in 3 subjects that are to be arranged then the number of ways of selecting them are the combination of 7 courses taken3 at a time.
The formula for the combination is defined as,
Substitute 7 for n and 3 for r in the above formula.
Cancel the common factors by factorizing the bigger term to the factorial.
The formula to calculate the factors of a factorial in terms of factorial itself is,
The combination is written as,
Thus, the number of ways that the courses are selected is 35.