the prices of tea and coffee per kg were the same in june . in july the price of coffee shot up by 10 % and that of tea dropped by 20 % . if in july , a mixture containing equal quantities of tea and coffee costs 50 / kg . how much did a kg of coffee cost in june ?
"let the price of tea and coffee be x per kg in june . price of tea in july = 1.1 x price of coffee in july = 0.8 x . in july the price of 1 / 2 kg ( 500 gm ) of tea and 1 / 2 kg ( 500 gm ) of coffee ( equal quantities ) = 50 1.1 x ( 1 / 2 ) + 0.8 x ( 1 / 2 ) = 50 = > x = 52.63 c"
divide(50, multiply(subtract(const_1, divide(20, const_100)), add(divide(10, const_100), const_1)))