12 girls out of 30 were selected, so the ratio "selected:tried" if 12/30. This fraction can be simplified into
[tex] \dfrac{12}{30} = \dfrac{2}{5} [/tex]
Similarly, 16 boys out of 40 were selected, so the ratio "selected:tried" if 16/40. This fraction can be simplified into
[tex] \dfrac{16}{40} = \dfrac{2}{5} [/tex]
So yes, the ratio of the number of students on the team to the number of students trying out the same for both boys and girls