13 students passed in Mathematics.
Let's denote:
M as the number of students who passed in Mathematics,
S as the number of students who passed in Science.
According to the given information:
S=17 (the number of students who passed in Science), M∩S=8 (the number of students who passed in both Mathematics and Science), M∪S (the number of students who passed in either Mathematics or Science) is not given directly.
However, we know that there are 25 students in total, and 3 students did not pass in any of the subjects. Therefore, we can use the principle of inclusion-exclusion:
M∪S=M+S−(M∩S)
Substitute the given values:
M∪S=M+17−8
Now, since M∪S represents the total number of students who passed in either Mathematics or Science, and there are 25 students in total, we can write:
M+17−8+3=25
Solve for M:
M+12=25
M=25−12
M=13
Therefore, 13 students passed in Mathematics.