Since she spent 3 hours doing her homework, and for every hour she spends on homework earns her 5 minutes to play video game, that would be 5 x 3 which give her 15 minutes to play video games.
The algorithm prints out all the possible ways to draw 3 <span>balls in sequence, </span><span> ---Select--- with </span> <span>replacement. It prints</span> <span>lines.</span>