A ball is dropped from a height of 24 meters. With each bounce, the ball reaches a height that is half the height of the previous bounce. How far has the ball travelled by the time it comes to the rest?