Answer:
{0,1,3,4}
Step-by-step explanation:
Given, total no of slices=8.
Total no of friends=4.
also each friend didnt ate more than the other three.
let a,b,c,d be no of slices ate by the friends 1,2,3,4 respectively.
given sum of a+b+c+d=8.
now applying the second condition
![a\leq b+c+d \\b\leq c+d+a\\c\leq a+b+d\\d\leq a+b+c](https://tex.z-dn.net/?f=a%5Cleq%20b%2Bc%2Bd%20%5C%5Cb%5Cleq%20c%2Bd%2Ba%5C%5Cc%5Cleq%20a%2Bb%2Bd%5C%5Cd%5Cleq%20a%2Bb%2Bc)
so each of a,b,c,d must be less than or equal to 4.
which means 5 values are possible{0,1,2,3,4}.from this set you have to select 4 values such that their sum is 8.hence, those values are {0,1,3,4}.