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?
Choose the correct answer.
A) $ 600  B) $ 740  C) $ 850  D) $ 900  E) $ 1,140
<gadget id="calculator">52 - 20</gadget>
<output>32</output>

<gadget id="calculator">32 - 10</gadget>
<output>22</output>

<gadget id="calculator">40 / 100</gadget>
<output>2/5 = around 0.4</output>

<gadget id="calculator">1 - (2/5)</gadget>
<output>3/5 = around 0.6</output>

<gadget id="calculator">(3/5) * 10</gadget>
<output>6</output>

<gadget id="calculator">22 + 6</gadget>
<output>28</output>

<gadget id="calculator">15 / 100</gadget>
<output>3/20 = around 0.15</output>

<gadget id="calculator">1 - (3/20)</gadget>
<output>17/20 = around 0.85</output>

<gadget id="calculator">(17/20) * 20</gadget>
<output>17</output>

<gadget id="calculator">28 + 17</gadget>
<output>45</output>

<gadget id="calculator">45 * 20</gadget>
<output>900</output>

<result>D</result>
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?
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)
"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"