.
The meaning of the word " between " in Math problems is not precisely defined.
Every time you should explain, if endpoints are included or not.
So, I will re-formulate the problem in this form
+---------------------------------------------------------------------+
| How many numbers from 10 to 999 inclusive have a digit sum of 8? |
+---------------------------------------------------------------------+
Solution
For a minute, I will change my problem and ask
+-----------------------------------------------------------------------+
| How many numbers from 0 to 999 inclusive have a digit sum of 8? |
+-----------------------------------------------------------------------+
Then it is the same as to ask
How many integer solutions does this equation have
+ + = 8
in integer non-negative numbers >= 0, >= 0, >= 0 ?
The answer is known from Combinatorics ( " Stars and Bars method " ),
( see this Wikipedia article
https://en.wikipedia.org/wiki/Stars_and_bars_(combinatorics)#:~:text=In%20the%20context%20of%20combinatorial,his%20classic%20book%20on%20probability. )
The number of solution in this case is = = = 45.
From it, we should subtract 1, which represents the number "8",
(we included it, when extended the set from [10,999] to [0,999]).
After subtracting, we get the final
ANSWER. There are 45-1 = 44 integer numbers from 10 to 999 (inclusive), such that the sum of their digits is 8.
Solved.