In a class of $40$ students, $18$ said they liked apple pie, $15$ said they liked chocolate cake, and $12$ said they did not like either. How many students in the class liked both?
Question:
In a class of $40$ students, $18$ said they liked apple pie, $15$ said they liked chocolate cake, and $12$ said they did not like either. How many students in the class liked both?
Answer:
Let's think step by step.

user
5
In a class of $40$ students, $18$ said they liked apple pie, $15$ said they liked chocolate cake, and $12$ said they did not like either. How many students in the class liked both?
train