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 56 people bought tickets to the concert , what was the total revenue from ticket sales ?
"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 26 tickets = 20 * 26 = 520 revenue generated from sales of 56 tickets = 120 + 340 + 520 = 980 $ answer d"
multiply(add(add(subtract(subtract(56, 20), 10), multiply(subtract(const_1, divide(40, const_100)), 10)), multiply(subtract(const_1, divide(15, const_100)), 20)), 20)