How can I find the number of permutation of different types of objects?I want to do this with C++.Can anyone suggest the alogthrim for me?thank you!

example: There is 5 walls. I have 5 cans of Yellow paint, 3 cans of Red paint and 2 cans of Blue paint.How many possible painting solutions do I have?