Answer: a) 792 ways b) 13⁷.
Explanation:
Since we have given that
Number of apples to be given = 5
Number of bananas to be given = 7
Number of people = 12
So, Number of ways that each person gets a pieces of fruit is given by

b) If the number of people = 13
Number of apples to be given = 7
So, Number of ways would be

Hence, a) 792 ways b) 13⁷.