a farmer spent $ 35 on feed for chickens and goats . he spent 40 % money on chicken feed , which he bought at a 50 % discount off the full price , and spent the rest on goat feed , which he bought at full price . if the farmer had paid full price for both the chicken feed and the goat feed , what amount would he have spent on the chicken feed and goat feed combined ?
a farmer spent 40 % money on chicken feed , so he spent 0.4 * $ 35 = $ 14 on chicken feed , thus he spent the remaining 35 - 14 = $ 21 on goat feed . now , since he bought chicken feed at a 20 % discount then the original price of it was x * 0.5 = $ 14 - - > x = $ 28 . therefore if the farmer had paid full price for both the chicken feed and the goat feed , then he would he have spent 28 + 21 = $ 49 . answer : b .
add(multiply(35, divide(40, const_100)), 35)