The positions of X and Y are fixed, with the three boys grouped together around X in the center, and the three girls grouped together around Y in the center.
The number of arrangements for boys=\((3 − 1)! = 2! = 2\)
Similarly for girls=\(2! = 2\)
\(\therefore\) Total number of ways= \(2\times2=4\)
The correct option is (C): 4