The first time it hits the floor, it will have fallen 6ft.

The second time it hits the floor, it will have fallen 6ft, bounced up 3ft, and fallen 3ft.

The third time it hits the floor, it will have fallen 6ft, bounced up 3ft, and fallen 3ft, bounced up 1.5 feet, and fallen 1.5 feet.

The fourth time it hits the floor, it will have fallen 6ft, bounced up 3ft, and fallen 3ft, bounced up 1.5 feet, and fallen 1.5 feet, bounced up 0.75 feet, and fallen 0.75 feet.

The fifth time it hits the floor, it will have fallen 6ft, bounced up 3ft, and fallen 3ft, bounced up 1.5 feet, and fallen 1.5 feet, bounced up 0.75 feet, and fallen 0.75 feet, bounced up 0.375 feet, and fallen 0.375 feet. Together, the total distance is 6+3+3+1.5+1.5+0.75+0.75+0.375+0.375 = 6+6+3+1.5+0.75 = 15 +2.25 = 17.25 feet.

Hopefully, this answered your question, have a great day!