a shopkeeper has 100 kg of apples . he sells 50 % of these at 25 % profit and remaining 50 % at 30 % profit . find his % profit on total .
"total number of apples = 100 let the cost price be x selling price at 25 % profit = 1.25 x selling price at 30 % profit = 1.3 x profit % = ( ( sp - cp ) / cp ) * 100 profit % = ( ( 1 / 2 ) * 100 * 1.25 x + ( 1 / 2 ) * 100 * 1.3 x - 100 x ) / 100 x * 100 = ( 255 - 200 ) / 2 = 27.5 % answer is a"
divide(multiply(subtract(add(multiply(divide(multiply(100, 50), const_100), divide(add(const_100, 25), const_100)), multiply(divide(multiply(100, 50), const_100), divide(add(const_100, 30), const_100))), 100), const_100), 100)