a farmer spent $ 38 on feed for chickens and goats . he spent 40 % money on chicken feed , which he bought at a 20 % 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 * $ 38 = $ 15.2 on chicken feed , thus he spent the remaining 38 - 15.2 = $ 22.8 on goat feed . now , since he bought chicken feed at a 20 % discount then the original price of it was x * 0.8 = $ 15.2 - - > x = $ 19 . therefore if the farmer had paid full price for both the chicken feed and the goat feed , then he would he have spent 19 + 22.8 = $ 41.8 . answer : e ."
add(multiply(38, divide(40, const_100)), 38)