How many ways are there to select $300$ chocolate candies from seven types of candy if each type comes in boxes of $20$ and if at least one but not more than five boxes of each type are chosen?
Can I get some help on this?
Edit: Preferably, using generating functions.