A boy said, "I saw that there are as many police tactical units as red hats, so I set X as a man."
The female is X- 1.
The girl said, "I saw twice as many police mobile units as the red hat."
X=2(X- 1- 1)
The solution is X=4X- 1=3, that is, four men and three women.
Boys account for 4 ÷ (3+4) x100% ≈ 57.1%of the total.