You can do casework: And the other 3 kids are children, a, b, and c. (STARS AND BARS QUESTION)
1. The twins both get no candy.
a + b + c = 17. Total cases = (17 + 3 - 1) choose (3 - 1) because a and b and c all are nonnegative. 171 total cases.
2. The twins both get 1 candy.
a + b + c = 15. Total cases = (15 + 3 - 1) choose (3 - 1). 17 choose 2 = 136 total cases.
3. The twins both get 2 candies.
a + b + c = 13. Total cases = 15 choose 2. 15 choose 2 = 105 total cases.
4. The twins both get 3 candies.
a + b + c = 11. Total cases = 13 choose 2 = 78 total cases. (You can see the pattern).
In the end, we have 19 choose 2 + 17 choose 2 + 15 choose 2... + 3 choose 2 (this is the each twin gets 8 candies case) = 615 total ways.