Total distance travelled by the ball can be given as,
`S = 120+2(120*4/5)+2(120*4/5*4/5)+...oo`
`=>S = 120+2(120*4/5)[1+4/5+(4/5)^2+...oo]`
`=>S= 120+192(1/(1-4/5))`
`=>S = 120+960`
`S = 1080` m
So, total distance travelled by the ball befoe coming to rest is `1080` m.