John goes to the market and buys 3 goats for $500 each and 2 cows for $1500 each.  How much money did he spend?
The goats cost 3*500=$
<gadget id="calculator">3*500</gadget>
<output>1_500</output>
1500.
The cows cost 2*1500=$
<gadget id="calculator">2*1500</gadget>
<output>3_000</output>
3000.
So in total he spends 1500+3000=$
<gadget id="calculator">1500+3000</gadget>
<output>4_500</output>
4500.

<result>4_500</result>