A selection of objects is determined by the number of objects of each kind. So, the number of such selections is the number of triples such that and , and . When you look at the polynomial, this is exactly the coefficient of . Indeed, to get one needs to choose some from the first factor, from the second factor and from the third factor so that . The number of such choices equals the coefficient of .