(In this question all apples are considered indistinguishable, same for oranges and for peaches.)
1) In how many ways 7 apples, 8 oranges, and 9 peaches can be shared between 2 people?
I calculated this as C 24,2 = 276
2) In how many ways 7 apples, 8 oranges, and 9 peaches can be shared between 3 people?
I calcuated this as C 24,3 = 2024
Am I on the right track?
1)
Let $x_1$ and $x_2$ represent the number of apples given to the people. Hence we need non negative integral solutions of $x_1+x_2=7$ which is $8$ using star and bars method.
Let $x_3$ and $x_4$ represent the number of oranges given to the people. Hence we need non negative integral solutions of $x_3+x_4=8$ which is $9$.
Let $x_5$ and $x_6$ represent the number of peaches given to the people. Hence we need non negative integral solutions of $x_5+x_6=9$ which is $10$.
Hence final answer is $8*9*10=720$ 2)
Using the same intuition we find non negative integral solutions of
$y_1+y_2+y_3=7$ as $\binom {9}{2}$
$y_4+y_5+y_6=8$ as $\binom {10}{2}$
$y_7+y_8+y_9=9$ as $\binom {11}{2}$
Hence the final answer as $36*45*55=89100$