Given:
The ratio of boys and girls when 10 girls left = 2 : 1
The ratio of boys and girls when 20 boys left = 4 : 3
Calculation:
Let there be x boys and y girls present
Then, (y−10)x=12
⇒ x = 2y - 20 -----(1)
Now, (y−10)(x−20)=4:3
⇒ 3x - 60 = 4y - 40
⇒ 3x = 4y - 40 + 60
⇒ 3x = 4y + 20 -----(2)
Put the value of x from equation(1) in equation(2)
⇒ 3(2y - 20) = 4y + 20
⇒ 6y - 60 = 4y + 20
⇒ 6y - 4y = 20 + 60
⇒ 2y = 80
⇒ y = 40
Now, x = 2y - 20
⇒ x = 2 × 40 - 20
⇒ x = 80 - 20 = 60
Now, The sum of boys and girls = 40 + 60 = 100
∴ The sum of boys and girls is 100.