A ball is dropped from a height of 18 feet. Each time it bounces up, it goes exactly one third as high as the time before. What is the total distance the ball travels?