Problem: tickets to a certain concert sell for $ 20 each . the first 10 people to show up at the ticket booth received a 40 % discount , and the next 20 received a 15 % discount . if 52 people bought tickets to the concert , what was the total revenue from ticket sales ?
Rationale: "price of 1 ticket = 20 $ revenue generated from sales of first 10 tickets = 10 * ( 60 / 100 * 20 ) = 10 * 12 = 120 revenue generated from sales of next 20 tickets = 20 * ( 85 / 100 * 20 ) = 20 * 17 = 340 revenue generated from sales of last 22 tickets = 20 * 22 = 440 revenue generated from sales of 52 tickets = 120 + 340 + 440 = 900 $ answer d"
annotated_formula: multiply(add(add(subtract(subtract(52, 20), 10), multiply(subtract(const_1, divide(40, const_100)), 10)), multiply(subtract(const_1, divide(15, const_100)), 20)), 20)