in a survey of students it was discovered that 76 like history,98 like geography and 87 like mathematics 15 like all the three subjects 39 like history and geography,37 like history and mathematics,48 like geography and mathematics and 45 like none of the subjects.

how many students took part in the survey

I gave you a detailed method for these kind of questions about 12 posts down from this.

Just follow the steps outlined.