This question has been asked a lot ot times recently.
there are probably a number of different answers given.
I let the children be A1 A2 B1 B2 C1 C2
If there were no restrictions there would be 6! ways to seat them
How many ways can they NOT be seated.
We cannot have all the pairs under each other so that would be
6 places to put A1 then 1 place to put A2
4 places to put B1 then 1 place to put B2
2 places to put C1 then 1 place to put C2
6*4*2 = 48
We cannot have one pair vertically alligned with the others not so
Say the As are vertially alligned but not B or C
6 places to put A1, 1 place to put A2
4 places to put B1, 2 places to put B2
2 places to put C1 and 1 place to put C2
6*1*4*2*2*1 = 96 ways
BUT ic could have been A or B or C that are vertically aligns so we have to multiply by 3
96*3=288
So I think the answer is
6! - (48+288) = 6! - 336 = 720 - 336 = 384 ways