There are 6 country music bands and 2 rock bands.
Total = 6+2 = 8 bands
A) there are no restrictions on the order.
When there are no restrictions then any of the music bands can play in any order.
The total number of ways is given by
So, there are 40320 ways
B) all bands of each type must perform in a row.
Now we have a restriction that all bands of each type (country and rock) must perform in a row.
So, there are two possibilities
6 country bands perform first then 2 rock bands
Or 2 rock bands perform first then 6 country bands
The total number of wats is given by
So, there are 2880 ways