A ball is dropped from a height of 6m onto a hard floor. The coefficient of restitution between the ball and the floor is 0.5, so after each bounce the ball rises with half the speed it hit the floor with. Ignoring air resistance, the total distance the ball travels before it comes to rest, in metres, is ____.