In a survery, students were asked whether they play basketball or tennis. Of 34 students, 24 play basketball and 13 students play tennis.4 students play neither. How many students play both sports?

Is it 7 students?

Yes, it's 7.

To find the number of students who play both basketball and tennis, we need to use a concept known as the Inclusion-Exclusion Principle.

First, we start by adding the number of students who play basketball (24) and the number of students who play tennis (13), which gives us a total of 37. However, we have double-counted the number of students who play both sports, so we need to subtract that number.

We know that there are a total of 34 students, and 4 students play neither sport. Therefore, we subtract the number of students who play neither (4) from the total number of students (34), which gives us 30 students that play at least one of the two sports (basketball or tennis).

Now, using the Inclusion-Exclusion Principle, we subtract the total number of students that play at least one sport (30) from the sum of the students who play basketball (24) and the students who play tennis (13). This results in 7 students who play both basketball and tennis.

So, the correct answer is that 7 students play both sports.