A linear equation in one variable $x$, $$ax+b=k$$ has only one non-negative integer solution. For example, $2x+3=85$ has a solution 41.
How to find the number of non-negative integer solutions of a linear equation in two variables $x$ and $y$, for example, $5x+3y=100$ and in general, $$ax+by=k$$
By brute-force search, I found 7 non-negative integer solutions of $5x+3y=100$. They are $(2, 30), (5, 25), (8, 20), (11, 15), (14, 10), (17, 5), \text{ and }(20, 0)$.
P.S. I came to know that a linear equation in two variables is also know as linear Diophantine equation. I also came across Kuṭṭaka, Aryabhata's algorithm for solving linear Diophantine equations in two variables.
Assume $\gcd(a, b)=1$. If there are any such solutions at all in non-negative integers, there will be a unique solution where $0 \leq x \lt b$. Start there. Increment $x$ by $b$ while simultaneously decrementing $y$ by $a$. When this process results in $y \lt 0$, you're done. In your example, you start with $(2, 30)$ (note that $0 \leq 2 \lt 3$) and then increase the first coordinate by $3$ while simultaneously decreasing the second coordinate by $5$.
If $\gcd(a, b) \neq 1$, then $\gcd(a, b) \mid k$ (or there would be no solutions in integers) so divide $a, b, k$ by $\gcd(a, b)$ and apply the first paragraph.