Answer:
8
Explanation:
Given that Of the 50 entries in a costume contest, 31 entrants were dressed as heroes and 20 entrants were wearing a mask. 9 entrants were dressed as heroes wearing a mask.
Let A = heroes and B = wearing mask
n(U) = 50
n(A)=31 and n(B) = 20 and n(AB) =9
Hence n(AUB) =
![31+20-9 = 42](https://img.qammunity.org/2020/formulas/mathematics/high-school/w2nvsvtrsf0pr4jlpnadgef8cbf4x9cwl7.png)
Persons who were neither dressed as heroes nor wearing a mask
![= n(U)-n(AUB)\\= 50-42=8](https://img.qammunity.org/2020/formulas/mathematics/high-school/1ig3nsm76qaxmcp9mx3yr0gv91in8lwrxr.png)