The probability of the simultaneous occurrence of two events A and B is p. If the probability that exactly one of A,B occurs is q, then