a shopkeeper has 280 kg of apples . he sells 40 % of these at 20 % profit and remaining 50 % at 30 % profit . find his % profit on total .
"if the total quantity was 100 then 40 x 20 % + 50 x 30 % = 23 this profit will remain same for any total quantity unless the % of products remains the same . hence ' a ' is the answer"
divide(multiply(subtract(add(multiply(divide(multiply(280, 40), const_100), divide(add(const_100, 20), const_100)), multiply(divide(multiply(280, 50), const_100), divide(add(const_100, 30), const_100))), 280), const_100), 280)