For example, there are 100x 1/2=50 boys and 100x 1/2=50 girls in group A.
In group B, boys 150x 1/3=50, girls150x (1-kloc-0//3) =150x2/3 =100.
After transfer, the percentage of boys in group A is (50-x)/( 100-x-y).
The percentage of boys in group B is (50+x)/( 150+x+y).
So (50-x)/( 100-x-y)=4/5.
(50+x)/( 150+x+y)= 3/ 10
X= ..., y= is used to solve the equation. ...
Both x and y are integers, so x=...y= ...
Hey, hey, kid, you do the math in the back.