Given that the events A and B are such thatand P (B) = p. Find p if they are (i) mutually exclusive (ii) independent.