Respuesta :

45% are boys of the 40 students
45% * 40 is 18

There are 18 boys in the gym

Hope this helps :)