Using the inclusion-exclusion principle:
∣A∪B∪C∣=∣A∣+∣B∣+∣C∣−∣A∩B∣−∣B∩C∣−∣A∩C∣+∣A∩B∩C∣
We are given that
∣A∣=48, ∣B∣=25, ∣C∣=18
∣A∪B∪C∣=60 (total men)
∣A∩B∩C∣=5 (men with medals in all three events)
Substituting:
60=48+25+18−(∣A∩B∣+∣B∩C∣+∣A∩C∣)+5
60=96−(∣A∩B∣+∣B∩C∣+∣A∩C∣)
∣A∩B∣+∣B∩C∣+∣A∩C∣=36
The number of men who received medals in exactly two events:
=(∣A∩B∣+∣B∩C∣+∣A∩C∣)−3∣A∩B∩C∣
=36−3(5)=36−15=21