How would I go about solving this question. How many solutions are there to:
$$x_1 + x_2 + x_3+...+ x_7 =18$$
in the case where $x_i \in \left\{2,3 \right\}, i =1,2,3,4,5,6,7$.
I understand this is a bars and stars problem. However I have only done ones where the total is equal to highest number of the set and that just uses combination by repetition. Any guidance on where to go would be greatly appreciated.
Hint:
Since every $x_i$ must be either a $2$ or a $3$, we can figure out exactly how many $2$'s are needed and exactly how many $3$'s are needed. The only missing information then is which of the $x_i$ are specifically the twos and which are the threes.
You could do this by stars-and-bars modified with a change of variables and inclusion-exclusion, however this seems incredibly overkill and tedious. You could also choose to do this by generating functions (which will highlight the same property you are being led to above if you remember your binomial theorem).
More detail on generating function approach: