For your example, two 3's and two 5's add up to 16. That is, total 4 numbers are here among which 2 are same and the rest 2 are also same.
Note that, if there are elements among which are of one type, are of another type,........,lastly are of another type, where , then the total number of possible combinations is . Compare this to you problem. What do you get then?