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