a gambler bought $ 3,000 worth of chips at a casino in denominations of $ 20 and $ 100 . that evening , the gambler lost 13 chips , and then cashed in the remainder . if the number of $ 20 chips lost was 3 more or 3 less than the number of $ 100 chips lost , what is the largest amount of money that the gambler could have received back ?
"in order to maximize the amount of money that the gambler kept , we should maximize # of $ 20 chips lost and minimize # of $ 100 chips lost , which means that # of $ 20 chips lost must be 2 more than # of $ 100 chips lost . so , if # of $ 20 chips lost is x then # of $ 100 chips lost should be x - 2 . now , given that total # of chips lost is 13 : x + x - 3 = 13 - - > x = 8 : 8 $ 20 chips were lost and 8 - 2 = 6 $ 100 chips were lost . total worth of chips lost is 8 * 20 + 6 * 100 = $ 760 , so the gambler kept $ 3,000 - $ 760 = $ 2,240 . answer : c ."
subtract(multiply(const_3, const_1000), add(multiply(divide(add(13, 3), 3), 20), multiply(subtract(divide(add(13, const_2.0), 3), 3), 100)))