I think there is no correct option.
The system is equivalent to
$$a_1+a_2=37$$
$$a_3+a_4+a_5=10$$
Let $b_i=a_i-1$. Then, $b_i$ are non-negative integers. So, the system is equivalent to
$$b_1+b_2=37-2=35$$
$$b_3+b_4+b_5=10-3=7$$
Then, here you can use the method you wrote, so we have
$$\binom{36}{1}\times\binom{9}{2}=\color{red}{1296}.$$
Consider the equation $x^2+y^2=z^2+w^2=N.$
This is equivalent to: $x^2-z^2=w^2-y^2=D.$
and we need $D$ to have at least two different factorizations with the factors having the same parity. One approach is thus to find the smallest values of $D$ which satisfy this property. Another approach is to find parametric solutions.
Let $(x-z)=ab$ and $(x+z)=cd$ with $(w-y)=ac$ and $(w+y)=bd$,
which gives the parametric solution: $\dfrac{1}{2}(ab+cd,bd-ac,cd-ab,ac+bd)$.
We have $N=\dfrac{1}{4}(a^2b^2+c^2d^2+b^2d^2+a^2c^2)$.
Now from the fact that $cd-ab$ and $bd-ac$ are distinct positive integers, we can see that no three of $a,b,c,d$ can be the same.
Thus, the lexicographically smallest value for the tuple $(a,b,c,d)$ is $(1,1,2,3)$, which gives the solution $(7,1,5,5)$ and $N=50$. Once we have this solution, it is easily checked that other tuples of $a,b,c,d$ give larger values of $N$.
Best Answer
In the world of combinatorics, you can use something commonly known as the "stars and bars" method. Generally put, the equation $$x_1+x_2+\ldots+ x_k = s$$ where $s,x_i$ are positive integers has $\binom{s-1}{k-1}$ many solutions. The quantity $\binom{s-1}{k-1}$ is called a binomial coefficient. A general binomial coefficient $\binom{a}{b}$ where $a,b$ are nonnegative integers with $a \geq b$ is defined as $$\binom{a}{b} =\frac{a!}{b!(a-b)!}$$ which means $$ \binom{s-1}{k-1} = \frac{(s-1)!}{(k-1)!(s-k)!}$$ In your problem we have $s = 37$ and $k = 2$. So, we want to calculate $$\binom{37-1}{2-1} = \frac{36!}{1!\space 35!} = 36$$ However, this tells us that the equation $x+y = 37$ has $36$ solutions. Since your equation is $3x+2y = 37$, we'll want every third $x$ and every second $y$. This is tantamount to dividing $36$ by $3$ and $2$. We get $\frac{36}{3\cdot 2} = 6$, which matches your calculation. (Had the ratio not been an integer, you'd want to round down to the nearest integer). Depending on how large $k$ and $s$ are, you may find the stars and bars method to be preferable to calculating every solution by hand. It really boils down to a pretty easy factorial calculation. I'd say your problem could go either way.