So going back to my old number theory book by I. Niven, An introduction to the theory on numbers, I saw these problems:
Question 1: Find the triplets of number $(x,y,z)$ such that $x+y+z=119,$ and none exceed $59?$
Question 2: Find four integers $(x,y,z,w)$, such that they have the property $x\ge 0 , y\ge 1, z\ge 2, w\ge 3$, and satisfies $x+y+z+w = 15.$
I would appreciate the indepth explanation to solving these problems
These are linear equations for which there is an established algorithm to solve, in terms of paramatrisations. I'll do the first question; see if you can generalise the idea to the second. Recall that solving a linear equation in two variables over $\mathbb Z$ is done like this: if $ax+by=c$, then find a particular solution $(x_0,y_0)$. Then all the solutions are given by $x=x_0-bt$, $y=y_o+at$, where $t$ ranges over all integral values. (Can you prove this?) Now let's move on to the three-variable case.
Set $u+v=k$. We have the simultaneous equations $$\begin{cases}u+v=k,\\k+w=119.\end{cases}$$ If we treat $k$ like a constant in the first equation we obtain the paramatrisation $u=k-t_1$, $v=t_1$. Treating $k$ like a variable in the second, we have $k=119-t_2$, $w=t_2$. Now, $u=k-t_1=119-t_1-t_2$. Hence, all the possible integer solutions are given by $(u,v,w)=(119-t_1-t_2,t_1,t_2)$. But none of the three variables exceed $59$, so we have the bounds $119-t_1-t_2\leq59$, $t_1\leq 59$, $t_2\leq 59$. In other words, $t_1,t_2$ are any two integers so that each is not exceeding $59$ and their sum is at least $60$. This provides a complete paramatrisation and hence solution to the problem.