We have $400$ students in a school. Every $20^{th}$ student failed at the end of the school year. Which was $2\%$ of schools girls and $10\%$ of schools boys.
The number of all boys attending the school is?
What I tried:
We know that every $20^{th}$ student fails, which means that $20$ students have failed. We also know that in these $20$ students are $2\%$ of all girls from the school and $10\%$ of all boys from the school. So we can make two equations like this: $$400 = b + g$$ $$20 = 0.1b + 0.02g$$
--I know the answer is $150$, but I got a different one.. if someone could point out an error in my logic, or just show how to solve it?