Amir wishes to buy some gifts to give to a friend. The gifts that he has found cost $4, $6, $9 and $14. Amir has only $25 to use to buy the gifts and he wants the amount that he spends to be as close as possible to $25, without going over. What are the prices of the gifts that Amir will buy? *
Suppose there is an additional gift that Amir could buy that costs $19 and that Amir is now willing to spend up to $30 on the gifts. What will be the total cost of the gifts that Amir will buy now?