Some more questions, I believe I have them right but I have no way to check my answers.
- How many decimal strings of length 55 contain exactly ten 7s?
The way I think this one is answered is by filling in the 10 spots that have to be 7 first. That gives you 45 spots for 8 possible numbers... so the answer is simply $8^{45}$?
How many ways are there to pick a dozen donuts from 5 types?
$5^{12}$
(Sorry I'm on my phone or I would use latex or whatever)
$$\binom {55}{10}9^{55-10}\text{ and }\binom{5+12-1}{12-1}$$ Choose 10 positions for sevens, fill them, choose the remaining numbers, for the last use stars and bars.