Suppose $A$ is a set of $8$ distinct positive integers, and $x \le 30$ for all $x \in A$. Show that there must be two distinct subsets of $A$ with $4$ elements whose elements when added up give the same sum.
I have tried to solve this problem as follows:
Observe that for $A_1 = \{1,2,3,4,27,28,29,30\}$, the least possible sum is $1+2+3+4=10$, and the largest sum is $27+28+29+30=114$. Thus, there are $105$ possible sums. However, the number of subsets of $A$ with 4 elements are $C(8,4) = 70$.
And I got stuck there. The idea is to shows that the number of possible sums is less than the number of subsets and prove it with pigeon hole principle. Then for all of other possible set $A$, the number of possible sums won't be more than the number of sums in $A_1$. However, I am still not sure about the general way of calculating all of the possible sums. What's the correct way of doing that?