how many different programs can a band have?

If a band can play 30 classical pieces, 15 jazz pieces and 9 rock pieces and its program always consists of a classical followed by a jazz then a rock piece

A: how many different programs can it have?

I assume its just 30*15*9 right?

B: how many different programs are there if the pieces can be played in any order (but still only one piece from each category)

i'm kind of stuck on this part. do you have to divide by 3! because its a combination? but it seems like the answer should be larger than the first