[EDIT: Btw, your interpretation as ways to sum to $10$ is completely correct :)]
I will just give two (and a half) other ways to work it out.
Since $|S|=12$ and we want to count $10$-combinations, it is simpler to count $2$-combinations instead (i.e. choose the elements not to go in the $10$-combination). There are $6$ of these:
$$
\{a,a\}, \{b,b\}, \{c,c\}, \{a,b\}, \{a,c\}, \{b, c\}
$$
These can be counted systematically by noting that we must choose either two of the same or two distinct elements, and then use basic combinatorics.
We can also note that $a,b,c$ all have multiplicity $\ge2$ in $S$. So the $2$-combinations of $S$ are the same as the $2$-combinations of the set $\{a,b,c\}$ with unlimited repetition. By stars and bars, that is $\binom{2+3-1}{2}=6$.
If we want to use a direct formula, we have to deal with a bunch of cases through inclusion-exclusion. With this method (as seen here), we get:
$$
\binom{10+3-1}{2} -
\Bigg[ \binom{6+3-1}{2} + \binom{5+3-1}{2} + \binom{4+3-1}{2} \Bigg] \\ +
\Bigg[ \binom{1+3-1}{2} + \binom{0+3-1}{2} + 0 \Bigg]
- 0
= 6
$$
(If you follow the link, note that the $56$ in their example should be $\binom{8}{2}=28$, and the correct answer is $9$).