$a+b+c+d\le 35, a,b,c,d \in Z^+_0$
Suppose $e = 35-a-b-c-d,
\Rightarrow e \in Z^+_0$ $a+b+c+d+e = 35, a,b,c,d,e \in Z^+_0$.
For each value of e, $a+b+c+d$ has a unique value and each solution of new equation gives us a unique solution of $a+b+c+d\le 35, a,b,c,d \in Z^+_0$
So, we thus have ${39\choose 4}$ = 82251 required solutions.
Reference
You can also adopt the alternative method:
$a+b+c+d = n, a,b,c,d\in Z^+_0, 0\le n \le 35$ to get ${3 \choose 3} + {4 \choose 3} \cdots {38 \choose 3} = {39\choose 4}$ by the Hockey Stick Identity. But this method is not only more time consuming but also difficult to understand.
- You can prove that $x_1 + x_2 + \cdots + x_r = n$ has ${n+r-1 \choose r-1}$ solutions, either by induction or by the Combinatorial method.
Suppose you have n distinct objects and r-1 separators. Your objective is to separate these n objects into r parts using r-1 separators. You may have empty sets. Let $x_i$ be the number of objects in the $i^{th}$ partition. Then $0\le x_i$ and $x_1 + x_2 +\cdots + x_r = n$. Hence, each way of making these partitions corresponds to an arrangement of the r-1 separators and n distinct objects, exactly equal to ${n+r-1 \choose r-1}$. Thus, $x_1 + x_2 +\cdots + x_r = n, x_i \in Z^+_0$ has ${n+r-1 \choose r-1}$ solutions.
- Analogously, each solution of $x_1 + x_2 +\cdots + x_r = n, x_i \in Z^+$ corresponds to r non-empty partitions of n distinct objects. For this, we need to place the separators between any two objects, thereby making sure, no 2 separators are placed next to each other and no partition is empty. This can be done in ${n-1 \choose r-1}$ as there are n-1 placed between these n aligned objects.
You may also want to note, that $x_1 + x_2 +\cdots + x_r = n, x_i \in Z^+$ may be replaced by $(y_1+1) + (y_2+1) + \cdots + (y_r+1) = n$ where $y_i = x_i -1, \Rightarrow y_i\in Z^+_0$. Thereby yielding $y_1 + y_2 + \cdots + y_r = n-r, y_i\in Z^+_0$ which clearly has ${(n-r)+r-1 \choose r-1}$ i.e., ${n-1 \choose r-1}$ solutions. This is just a cross check between the two derived identities.