Let A denote the event that a sum of 5 occur,
B denote the event that a sum of 7 occur and
C denote the event that neither a sum of 5 nor of 7 occur
P(A)=436=19,P(B)=636=16,P(C)=2636=1318
Therefore required probability
=P(A)+P(C∩A)+P(C∩C∩A)+...=P(A)+P(C)P(A)+(P(C))2P(A)+...
=P(A)1−P(C)=25