I have a multiple choice question.
Suppose $x_1,x_2,x_3,..,x_7 \in \{0,3,4,5\}$. How many distinct answers are possible for $A$, when $A=x_1+x_2+x_3+x_4+x_5+x_6+x_7$?
Choices:
14
30
34
28
I can try to put all the $(0,0,...,0), (3,0,0,...,0) ... (5,5,5,...,5)$, but it takes a long time. I think there is a trick to find the possible answer by combinatorics, but how?
Clearly, we have $0\leq A\leq 35$, so there are at most $36$ possibilities. Also clearly $A\neq 1,2$. In fact any other $A$ is possible. (Maybe you can prove this yourself; if not there is a spoilered explanation below.)
So the answer is $34$.