There are $5$ boys and $5$ girls. Number of ways in which $5$ boys and $5$ girls can stand in a queue such that exactly $4$ girls can stand consecutively is:
My attempt: I first chose $4$ girls out of $5$ needed to be arranged in queue. It can be done in $5C4$ ways. I bundle them separately. Then I arrange them with remaining $5$ boys and a girl. So total ways is $5C4×4!×7!$ Now we have to subtract those cases in which all $5$ girls are together. So ways are $6!×5!$ Required ans is $5C4×4!×7!-6!×5!$.
Why this is wrong?
There is double counting in $\binom54\times4!\times7!$ where you count the number of ways where at least $4$ girls are consecutive.
Suppose you have selected the girls $A,B,C,D$ to be consecutive.
Then we encounter the possibility: $$(A-B-C-D)-E-boys$$ where $E$ is the other girl.
But if you have selected the girls $B,C,D,E$ we meet this possibility again in: $$A-(B-C-D-E)-boys$$
edit (solution)
First place the girls on a row.
Then by using stars and bars we find $2\binom62=15$ to place the boys in such a way that the girls are split up in a consecutive group of $4$ and a single girl. Here factor $2$ is there because the single girl can be on the left or on the right of the consecutive group.
That gives: $$2\binom625!5!=432000$$ possibilities in total