Let A and B be two events. Suppose P(A)=0.4,P(B)=p, and P(A∪B)=0.7. The value of p for which A and B are independent is