John decided to sell his PlayStation to buy a new computer.  The computer's cost was $700 and the accessories cost was $200.  The PlayStation was worth $400 but he sold it for 20% less than its value.  How much money came out of his pocket?
He loses 400*.2=$
<gadget id="calculator">400*.2</gadget>
<output>80</output>
80 on the PlayStation.
So he sells it for 400-80=$
<gadget id="calculator">400-80</gadget>
<output>320</output>
320.
The computer cost 700+200=$
<gadget id="calculator">700+200</gadget>
<output>900</output>
900.
So he was 900-320=$
<gadget id="calculator">900-320</gadget>
<output>580</output>
580 out of pocket.

<result>580</result>