No. of combinations of n dissimilar things taken r at a time is denoted by nCr.
nCr=n!r!(n−r)!
There are 3 cases for this:
(a) Apples are distributed as (4,3,1). This combination can be distributed in 3! ways.
No.of ways = 3!×8C4×4C3=6×70×4=1680
(b) Apples are distributed as (4,2,2). This combination can be distributed in 3C2 ways.
No.of ways = 3C2×8C4×4C2=3×70×6=1260
(c) Apples are distributed as (3,3,2). This combination can be distributed in 3C2 ways.
No.of ways = 3C2×8C3×5C3=3×56×10=1680
So, the total number of possibilities = 1680+1260+1680=4620.
Thus, if 4620 is pqrs, then p.q.r=4×6×2=48.
∴ The correct answer is 48.