Girls;Total number of girls who tried out = 30
Number of girls who got selected = 12
Ratio of girls on team to girls who tried out =

= 2 : 5
Boys;Total number of boys who tried out = 40
Number of boys who got selected = 16
Ratio of boys on team to boys who tried out =

= 2 : 5
Hence, the ratios are the same.