We are trying to solve for the probability ratio. I do not know if
@Office_Shredder has a particular approach in mind, but here is how I would attack it.
Let ##p## be the probability of first hitting 980. Then ##1-p## is the probability of first hitting 1060. We are in an infinite random walk (as I recall), so the probability of never hitting either is obviously zero.
We know that the mean of the infinite random walk needs to be 1000 because that is the starting point and every step is unbiased. So we write down an equation: ##980 p + 1060(1-p) = 1000##
Now we just have to solve for p. Easy algebra. Then write down the ratio in the form ##p:1-p##.
If intuition serves, we should find that the sides of the ratio are in inverse proportion to each side's deviation from the mean. The deviations are 20:60 so the probability ratio will be 3:1.
[It feels like there should be some more directly compelling algebra if I'd made a better choice of variables. But I will not change horses mid-stream]
Let us see whether the algebra bears this out...
##980p + 1060 (1-p) = 1000##
##(980 - 1060)p + 1060 = 1000##
##-80p = -60##
##p = \frac{3}{4}##
##1-p = \frac{1}{4}##
Ratio = 3:1
Bingo.