Given,
x+y+z=15
Now we know that,
Non-negative integral solution of equation a+b+c=n is given by C3−1n+3−1 where a=b=c&a=b\neq c are also possibilities
So by above formula we get,
Total number of non-negative solution will be, C3−115+3−1=C217
Now solving If any of these 2 are equal
So, the equation will becomex+2y=15
Now finding possible cases we get,
y=0x=15
y=1x=13
y=2x=11
y=3x=9
y=4x=7
y=5x=5→x=y=z=5
y=6x=3
y=7x=1
So, total possibilities where x,y&z are distinct will be,
=C217−C23×8+2
{Note adding 2 because the cases x=y=z is subtracted three times}
=136−24+2=114