$C(24,5)$ counts the number of weak integer compositions of $19$ into $6$ parts. You can think of this as taking $19$ sticks and throwing in $5$ more sticks to represent partitions. With those $24$ sticks in a row, you choose $5$ of them to be the partitions and the ones between the sticks represent the sum. For example, if we let "|" represent the partition and let each integer represent the number of sticks between, 6|3|4|0|1|5 is a composition of 19.
From there, we want a bijection between integer compositions and numbers less than $1,000,000$ through the obvious way- that is, each place in the composition represents a place in the base $10$ representation. For example, the above composition would go to $634,015$. However, there is a problem: you could have, for example, a composition like $19|0|0|0|0|0$, but $19$ is not a digit, so you'll need to eliminate the compositions with parts greater than or equal to $10$.
It's here that you're grateful to the creator of the problem that they used $19$ instead of $20$, which was a kind, and likely intentional choice, as you can only have at most one part greater than $10$. Now you only have to assume that one part is at least $10$ and split the remaining $9$ among the six parts. The number of ways to do that is the number of "bad" compositions that you need to remove. Try to see what you can come up with from here.