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