James gets 3 parking tickets.  The first 2 cost $150 each and the third cost 1/3 as much as one of these.  His roommate agrees to pay half the cost.  How much money does he have left if he had $500 in the bank?
The third ticket cost $150/3=$
<gadget id="calculator">150/3</gadget>
<output>50</output>
50.
So the tickets cost $150*2+$50=$
<gadget id="calculator">150*2+50</gadget>
<output>350</output>
350.
That means he paid $350/2=$
<gadget id="calculator">350/2</gadget>
<output>175</output>
175.
So he had $500 - $175 = $
<gadget id="calculator">500-175</gadget>
<output>325</output>
325 left over.

<result>325</result>