单选题
A certain ball was dropped from a window 8 meters above a sidewalk. On each bounce it rose straight up exactly one-half the distance of the previous fall. After the third bounce the ball was caught when it reached a height of exactly 1 meter above the sidewalk. How many meters did the ball travel in all?