a vendor sells 80 percent of the pears he had and throws away 50 percent of the remainder . the next day , the vendor sells 80 percent of the remaining pears and throws away the rest . in total , what percent of his pears does the vendor throw away ?
"let x be the original number of pears . on day one , the vendor throws away ( 0.5 ) ( 0.2 ) x = 0.1 x . the remaining pears are ( 0.5 ) ( 0.2 ) x = 0.1 x . on day two , the vendor throws away ( 0.2 ) ( 0.1 ) x = 0.02 x . the vendor throws away a total of 0.1 x + 0.02 x = 0.12 x . the vendor throws away 12 percent of the pears . the answer is d ."
multiply(const_100, add(subtract(subtract(subtract(const_1, divide(80, const_100)), multiply(divide(50, const_100), subtract(const_1, divide(80, const_100)))), multiply(subtract(subtract(const_1, divide(80, const_100)), multiply(divide(50, const_100), subtract(const_1, divide(80, const_100)))), divide(80, const_100))), multiply(divide(50, const_100), subtract(const_1, divide(80, const_100)))))