Four boys and three girls want to sit on a bench. In how many ways can they sit:
- if the boys are next to one another and the girls are next to one another.
Since boys and girls are separated, they are treated as two units. The first unit—boys—consist of 4 people, and the order matters, so $_4P_4$ is 24. The second unit—girls—consist of 3 people, and the order matters, so $_3P_3$ is 6. Then, as they are two units, we multiply them together, giving us an answer of 144 ways. - if there are neither boys next to one another nor girls next to one another.
There are four possible seats for boys, each has the possibility of hosting four different boys. Then, there are $4^{4}$=256 ways for them to sit. There are three possible seats for girls, each has the possibility of hosting three different girls. Then, there are $3^{3}$=27 ways for them to sit. If we merge them altogether, we get 256*27=6912 ways overall.
I am pretty confident about the first one, but I have lots of doubts about the second one. I, initially, thought: Isn't the second question similar to the first one? Then, I brushed it off as I contemplated over it for a few seconds.