Let A denote the event that a sum of 7 occurs, B the event that a sum of 5 occurs and C the event that neither a sum of 5 nor a sum of 7 occurs.
We have P(A)=636=16,P(B)=436=19,P(C)=2636=1318.
Thus,
p=P(A or (C∩A) or (C∩C∩A) or ....)
=P(A)+P(C)P(A)+P(C)2P(A)+....
=P(A)1−P(C)=1/61−13/18=35.