Number of students who like to play cricket,`n(A) = 24`
Number of students who like to play football,`n(B) = 16`
As each student likes to play at least one of the two games,
`n(AuuB) = 35`
Number of students who like to play both cricket and football,
`n(AnnB) = n(A)+n(B)-n(AuuB) = 24+16-35 = 5`