If A and B are two events write the expression for the probability of occurrence of exactly one of two events.
If A and B are independent, then
P (exactly one of them occurs) = P(A) + P(B) — 2P(A)× P(B)