Carla asked students at a lunch table what main course they like. Out of those students, 28 like pizza, 15 like chicken nuggets and 8 like both. What is the probability that a randomly selected student will like pizza but not chicken nuggets?

To find the probability that a student will like pizza but not chicken nuggets, we first need to find the total number of students who like pizza but not chicken nuggets.

Total students who like pizza = 28
Students who like both pizza and chicken nuggets = 8

Students who like only pizza = Total students who like pizza - Students who like both
Students who like only pizza = 28 - 8
Students who like only pizza = 20

Now, we can calculate the probability of a randomly selected student liking pizza but not chicken nuggets:

Probability = Number of students who like only pizza / Total number of students
Probability = 20 / (28 + 15 - 8)
Probability = 20 / 35
Probability = 4/7

Therefore, the probability of a randomly selected student liking pizza but not chicken nuggets is 4/7.