I am trying to solve the following problem.
Suppose you a roll two fair $6$-sided dice repeatedly. What is the probability that you obtain a sum of $4$ before a sum of $2$.
It is clear to me that the probability you obtain a sum of $4$ or $2$ is $3/36$ or $1/36$ respectively. However, I do not understand how to determine the probability of obtaining a sum of $4$ before a sum of $2$. Does the solution involve an infinite sum? I do not understand.
As you have correctly observed, the probability is $\frac{3}{36}$ and $\frac{1}{36}$ to get a sum of $4$ and a sum of $2$ (respectively).
Now, it follows that there are $3$-times chances to get a sum of $4$ over a sum of $2$ (that implies a pair of $1$ for both the dice), since $\frac{\frac{3}{36}}{\frac{1}{36}}=3$. Thus, we have finally ${\frac{3}{3+1}}=\frac{3}{4}$ (number of wins over number of total cases, ratio).