Given that the events A and B are such that P(A) = 12, PA∪B=35 and P (B) = p. Find p if they are (i) mutually exclusive (ii) independent.