Given as
The total number of questions = 12
The total number of questions to be answered = 7
The number of ways = (No. of ways of answering 5 questions from group 1 and 2 from group 2) + (No. of ways of answering 4 questions from group 1 and 3 from group 2) + (No. of ways of answering 3 questions from group 1 and 4 from group 2) + (No. of ways of answering 2 questions from group 1 and 5 from group 2)
= (6C5 × 6C2) + (6C4 × 6C3) + (6C3 × 6C4) + (6C2 × 6C5)
On using the formula,
nCr = n!/r!(n – r)!
= (6 × 15) + (15 × 20) + (20 × 15) + (15 × 6)
= 90 + 300 + 300 + 90
= 780
Thus, the total no. of ways of answering 7 questions is 780 ways.