Suppose there are x boys, then the boy sees two (X- 1) girls (the boy can't see himself, so he has to subtract himself from the number of boys he sees, that is, 1). From the perspective of girls, the number of girls is (3/2)X+ 1 (the number of girls seeing boys is
Then it is: 2(X- 1)=(3/2)X+ 1.
If X=6, then 2(X- 1)= 10.
So there are six boys, 10 girls.