As the title of the question explains:
What I thought on the very first instant was that we will make them sit alternate hence the answer will be 2 * 6! * 6!
But then in some book I saw the explanation that there are 7 places where a Girl can sit out of the given 12 seats. Hence the answer is 7C6 * 6! * 6!.
But I don't get how are there 7 places for girls to sit.
I understand that howcome my original assumption of alternate placement was wrong. Because you can do
G B B G B G B G B G B G
And so on. But the authors explanation of 7 seats for girls is still not clear to me.
Cheers.
Let the boys arrange themselves in $6!$ ways. Girls can sit in between or besides them such that maximum one girl is between any $2$ boys.
$$\text{1 B 2 B 3 B 4 B 5 B 6 B 7}$$
Clearly, there are $1-7$ places for $6$ girls. $7$ places. I bet you can take from here