The correct option is C 336
Consider the first equation, x1+x2=15. A way to think of this is that you have 15 objects laid out in a line in front of you, and you can put a divider in any gap, such that the number of balls to the left of the divider will be x1, and those to the right will be x2. The number of available gaps to you is 16 (because xr can also be equal to 0), so the number of ways you can place the divider (i.e., the number of solutions to the equation) is:
16C1=16. (the divider can be placed in any one of 16 gaps)
In general, the number of non-negative integral solutions of the equation x1+x2+x3+...xr=n is n+r−1Cr−1.
A similar logic for the second equation will give the number of solutions as:
7C2=21 ..... [x1+x2=15⟹x3+x4+x5=5
So, the total number of solutions, using multiplication principle:
16×21=336