5 boys and 4 girls sit in a straight line. Find the number of ways in which they can be seated if 2 girls are together and the other 2 girls are also together but seprate from the first 2 ?
Dear student,
I have provided two methods. Choose whichever you prefer.
Method I: Fix two ordered pairs of girls AB,CD. Then there are 7! ways to arrange the five boys and these two ordered pair. Of course we might have ABCD together, so to rule that out subtract 6! Similarly, we must rule out another factor of 6! to exclude CDAB. Thus for these two ordered pairs there are
Now, sticking to these pairs but varying the order gets us
4×3600=14,400And, finally, we can change the pairs. Instead of AB we could have had ACor AD so, finally,
3×14,400=43,200Method II: (closer to what you were trying) Arrange the kids as
−AB−CD−