A school bought 20 cartons of pencils at the start of school. Pencils come in cartons of 10 boxes and each box costs $2. The school also bought 10 cartons of markers. A carton has 5 boxes and costs $4. How much did the school spend in all?
The school bought 20 x 10 = 
<gadget id="calculator">20*10</gadget>
<output>200</output>
200 boxes of pencils.
The pencils cost 200 x $2 = $
<gadget id="calculator">200*2</gadget>
<output>400</output>
400.
The school bought 10 x 5 = 
<gadget id="calculator">10*5</gadget>
<output>50</output>
50 boxes of markers.
The markers cost 50 x $4 = $
<gadget id="calculator">50*4</gadget>
<output>200</output>
200.
Thus, the school spent a total of $400 + $200 = $
<gadget id="calculator">400+200</gadget>
<output>600</output>
600.

<result>600</result>