This one is best solved working backwards, the last part David spent half of what was left plus $1.00 on candy and then was out of money. That means he must have spent $2.00 on Candy as $1.00 was half of what he had using the same logic backwards: $2.00 on candy $6.00 on Balloons and Streamers $12.00 on the cake Total of $20.00.
Turn over both hourglasses at once. When the four-minute hourglass runs out, turn it over. When the seven-minute hourglass runs out, turn it over. When the four-minute timer runs out this time (eight minutes have elapsed), the seven-minute hourglass has been running for one minute. Now turn over the seven minute timer back over. When the timer runs out, nine minutes have elapsed.