A student appears for tests I, II and III. The student is successful if he passes either in tests I and II or tests I and III. The probabilities of the student passing in tests I, II and III are, respectively, p, q and 1/2. if the probability that the student is successful is 1/2, then p(1+q)=