\(a) \text{ The partitions of 10 are }\\ (2,2,6), ~(2,3,5),~(2,4,4),~(3,3,4),\\ \text{ and all arrangements of these among the colors}\\ \text{there will be $\dbinom{3}{1}+3! + \dbinom{3}{1}+\dbinom{3}{1} = 15$ arrangements}\)
\(b) \text{ Is basically the same deal but now we find the partition of 20 rather than 10}\\ (2,9,9),~(3,8,9),~(4,7,9),~(4,8,8),~(5,6,9),~(5,7,8),~(6,6,8),~(6,7,7),~\text{and all arrangements by color}\\ \text{as before this will be}\\ 3 + 3! + 3! + 3 + 3!+3! +3+3= 36\)
.