A student appears in test I, II and III. The student is successful if he passes either in test I and II or in test I and III. The probabilities that the student is successful in Tests I, II, III are p,q,12.If the probability that the student is successful is 1/2, then find the relation between p and q.