Word problem involving the probability of a union