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.