A superball is tossed vertically 40 feet and rebounds on each bounce 3/5 of the height from which it fell. How far will it travel before coming to rest?

first fall, 40 ft, then second bounce 2(40*3/5), third 2*(40*3/5)(3/5), etc

Now, how can you determine what rest is?