At a CD store, 40% of the CDs cost $10 each, and the rest cost $5 each. Prince bought half the CDs sold at $10 each, and all of the CDs sold at $5 each. If the total number of CDs was 200, how much money did Prince spend on buying the CDs?
The number of CDs selling at $10 each at the store is 40/100*200 = 
<gadget id="calculator">40/100*200</gadget>
<output>80</output>
80.
This means the store sells 200-80 = 
<gadget id="calculator">200-80</gadget>
<output>120</output>
120 CDs at $5 each.
Prince bought 1/2*80 = 
<gadget id="calculator">1/2*80</gadget>
<output>40</output>
40 of the CDs selling at $10 each.
The total amount of money Prince paid for the 40 CDs selling at $10 each is $40*10 = $
<gadget id="calculator">40*10</gadget>
<output>400</output>
400.
If he bought all the CDs selling at $5 each, he paid a total of $5*120 = $
<gadget id="calculator">5*120</gadget>
<output>600</output>
600.
For all the CDs he bought, Prince spent $600+$400= $
<gadget id="calculator">600+400</gadget>
<output>1_000</output>
1000.

<result>1_000</result>