Answer:
23 students
Explanation:
We can solve this problem using sets, we can represent the students who like math and the students who like science as two sets:
- M = {students who like math}
- S = {students who like science}
We are given that there are 29 students in set M and 41 students in set S. We are also given that there are 47 students in total.
This means that the union of sets M and S must be equal to 47:
M ∪ S = 47
However, this number includes students who like both math and science, as well as students who like only one or the other.
To find the number of students who like both math and science, we need to subtract the number of students who like only one or the other from the total number of students who like math or science.
We can use the following formula to find the number of students who like only math or science:
n(M ∪ S) = n(M) + n(S) - n(M ∩ S)
where n(X) is the number of elements in set X and ∩ is the intersection operator.
Substituting the values that we know, we get:
47 = 29 + 41 - n(M ∩ S)
n(M ∩ S) = 29 + 41 - 47
n(M ∩ S) = 23
Therefore, there are 23 students who like both math and science.