James gets 10 new CDs.  Each CD cost $15.  He gets them for 40% off.  He decides he doesn't like 5 of them and sells them for 40. How much money was he out?
He got a 15*.4=$
<gadget id="calculator">15*.4</gadget>
<output>6</output>
6 discount on each CD.
That means each CD cost 15-6=$
<gadget id="calculator">15-6</gadget>
<output>9</output>
9.
So he paid 10*9=$
<gadget id="calculator">10*9</gadget>
<output>90</output>
90.
That means he was out 90-40=$
<gadget id="calculator">90-40</gadget>
<output>50</output>
50.

<result>50</result>