A salesman bought a case of 48 backpacks for $576. He sold 17 of them for $18 at the swap meet, 10 were sold to a department store for $25 each. If the remainder were sold for $22 each. How much was the salesman's profit?
The salesman sold 17 bags for 17 bags x $18/bag = $
<gadget id="calculator">17*18</gadget>
<output>306</output>
306.
He sold 10 more for 10 bags x $25/bag = $
<gadget id="calculator">10*25</gadget>
<output>250</output>
250.
Thus far he has sold 17 bags + 10 bags = 
<gadget id="calculator">17+10</gadget>
<output>27</output>
27 bags.
Therefore he sold 48 bags - 27 bags = 
<gadget id="calculator">48-27</gadget>
<output>21</output>
21 bags for $22 each
21 bags were sold for 21 bags x $22/bag = $
<gadget id="calculator">21*22</gadget>
<output>462</output>
462.
In total the salesman made $306 + $250 + $462 = $
<gadget id="calculator">306+250+462</gadget>
<output>1_018</output>
1018.
The salesman made $1018 - $576 = $
<gadget id="calculator">1018-576</gadget>
<output>442</output>
442 in profit.

<result>442</result>