Sam bought a dozen boxes, each with 30 highlighter pens inside, for $10 each box. He rearranged five of these boxes into packages of six highlighters each and sold them for $3 per package. He sold the rest of the highlighters separately at the rate of three pens for $2. How much profit did he make in total, in dollars?
Sam bought 12 boxes x $10 = $
<gadget id="calculator">12*10</gadget>
<output>120</output>
120 worth of highlighters.
He bought 12 * 30 = 
<gadget id="calculator">12*30</gadget>
<output>360</output>
360 highlighters in total.
Sam then took 5 boxes * 6 highlighters/box = 
<gadget id="calculator">5*6</gadget>
<output>30</output>
30 highlighters.
He sold these boxes for 5 * $3 = $
<gadget id="calculator">5*3</gadget>
<output>15</output>
15.
After selling these 5 boxes there were 360 - 30 = 
<gadget id="calculator">360-30</gadget>
<output>330</output>
330 highlighters remaining.
These form 330 / 3 = 
<gadget id="calculator">330/3</gadget>
<output>110</output>
110 groups of three pens.
He sold each of these groups for $2 each, so made 110 * 2 = $
<gadget id="calculator">110*2</gadget>
<output>220</output>
220 from them.
In total, then, he earned $220 + $15 = $
<gadget id="calculator">220+15</gadget>
<output>235</output>
235.
Since his original cost was $120, he earned $235 - $120 = $
<gadget id="calculator">235-120</gadget>
<output>115</output>
115 in profit.

<result>115</result>