The number of positive integral solutions to the system of equations
$$\begin{align} & a_{1}+a_{2}+a_{3}+a_{4}+a_{5}=47\\ &a_{1}+a_{2}=37,\ \ \{a_{1},a_{2},a_{3},a_{4},a_{5}\} \in \mathbb{N}\end{align}$$
is
$a.)\ 2044\quad \quad \quad \quad \quad b.)\ 2246\\ c.)\ 2024\quad \quad \quad \quad \quad \color{green}{d.)\ 2376}$
I know my something like stars and bars for $a_{1}+a_{2}+a_{3}+a_{4}+a_{5}=47$ ,
the non-negative solutions are $\dbinom{47+4}{4}$ and
for $a_{1}+a_{2}=37$
the non-negative solutions are $\dbinom{37+1}{1}$
But the non-negative solutions will include zero and it is not needed here.
Also there are two cases combined I am confused on how to solve this question.
Also this question was given in chapter quadratic equations I don't know how.
I look for a short and simple way.
I have studied maths up to $12$th grade.Thanks.
Hint: You can look up "stars and bars" to find the formula for positive integer solutions (or just use the formula for non-negative solutions, by adding 1 automatically to each number and then subtracting the number of numbers from the sum, and using your formula for non-negative solutions for the lowered sum). Then, you have a solution if and only if $a_1 + a_2 = 37$ and $a_3 + a_4 + a_5 = 10$, and these events are independent.