Alyssa and Chelsea jointly bought 40 candles to decorate their room. Alyssa used half of them, and Chelsea used 70% of the remaining candles. How many candles are there in the room now?
Alyssa used half of the candles, which is 1/2*40 = 
<gadget id="calculator">1/2*40</gadget>
<output>20</output>
20 candles.
The number of candles that remained is 40-20 = 
<gadget id="calculator">40-20</gadget>
<output>20</output>
20.
Chelsea used 70% of the remaining candles, a total of 70/100*20 = 
<gadget id="calculator">70/100*20</gadget>
<output>14</output>
14 candles.
The total number of candles in the room now is 40 - 20-14 = 
<gadget id="calculator">40-20-14</gadget>
<output>6</output>
6.

<result>6</result>