ratio of students selected on the team / the number of students trying out...
boys :
on the team -- 16
trying out -- 40
ratio is : 16/40 which reduces to 2/5
girls :
on the team -- 12
trying out -- 30
ratio is : 12/30 which reduces to 2/5
so yes, the ratios are the same because in both boys and girls, the number of players selected was 2/5 of the total who tried out.