an auction house charges a commission of 15 % on the first $ 50000 of the sale price of an item , plus 10 % on the amount of of the sale price in excess of $ 50000 . what was the price of a painting for which the house charged a total commission of $ 24000 ?
say the price of the house was $ x , then 0.15 * 50,000 + 0.1 * ( x - 50,000 ) = 24,000 - - > x = $ 215,000 ( 15 % of $ 50,000 plus 10 % of the amount in excess of $ 50,000 , which is x - 50,000 , should equal to total commission of $ 24,000 ) . answer : c
divide(subtract(add(divide(subtract(24000, multiply(50000, divide(15, const_100))), divide(const_10, const_100)), 50000), 50000), const_1000)