Given:
Total number of questions
Total number of questions to be answered
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)
By using the formula,
Or,
∴ The total no. of ways of answering