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
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}.