In a class of 30girls, 17 play football, 12 play hockey and 4 play both games

How many girls play
One or two of the games
None of the two games

since 4 play both,

13 play only football
8 play only hocke17+12-4 = 25 play something

you can now easily answer the questions

in a class of 30 girls, 17 playbfootball, 12 play hocky and 4 play both games