A ball is dropped from a height of with a rebound ratio of %. After bounces, how far has the ball travelled Practice Problem

<-- Enter height of the drop
% <-- Enter Rebound Ratio Percentage
<-- Enter number of bounces

The following practice problem has been generated for you:
A ball is dropped from a height of 12 with a rebound ratio of 54%. After 11 bounces, how far has the ball traveled in a downward motion?