Answer:
3 people have both a nose and ear pierced. I deducted this by adding 7 and 36 to see what amount of students go over the 40 count (Because whatever amount of students is more than 40, those are the amount of students who raised their hands twice)