In a class of 50 students, 25 like oranges, 22 like bananas. 4 like both oranges and bananas. How many like neither oranges nor bananas?

To solve this problem, we can use the principle of inclusion-exclusion.

First, we add the number of students who like oranges and the number of students who like bananas:

25 + 22 = 47

However, we have counted the 4 students who like both oranges and bananas twice, so we need to subtract them once:

47 - 4 = 43

So, 43 students like either oranges or bananas or both.

To find the number of students who like neither, we subtract this from the total number of students:

50 - 43 = 7

Therefore, 7 students like neither oranges nor bananas.