Tim decides to light off some fireworks for the fourth of July.  He buys a package of fireworks worth $400 and another pack worth twice that much.  He gets a 20% discount on them.  He also buys a finale firework that costs $150.  How much did he spend in total?
The second package was worth 400*2=$
<gadget id="calculator">400*2</gadget>
<output>800</output>
800.
So the two packages were worth 400+800=$
<gadget id="calculator">400+800</gadget>
<output>1_200</output>
1200.
That means he got a discount of 1200*.2=$
<gadget id="calculator">1200*.2</gadget>
<output>240</output>
240.
So the packages cost 1200-240=$
<gadget id="calculator">1200-240</gadget>
<output>960</output>
960.
So he spent a total of 960+150=$
<gadget id="calculator">960+150</gadget>
<output>1_110</output>
1110.

<result>1_110</result>