James buys a ring for his bride-to-be.  The diamond cost $600 and the gold cost $300.  He pays a 30% premium for it to be made.  How much did he pay?
The material cost 600+300=$
<gadget id="calculator">600+300</gadget>
<output>900</output>
900.
The premium came out to 900*.3=$
<gadget id="calculator">900*.3</gadget>
<output>270</output>
270.
So the total cost was 900+270=$
<gadget id="calculator">900+270</gadget>
<output>1_170</output>
1170.

<result>1_170</result>