Sally took 342 pens to her class of 44 students. If she gave 7 pens to each student, left half of the remainder in her locker, and took the rest home, how many did she take home?
She gave 7 pens each to 44 students for a total of 7*44 = 
<gadget id="calculator">7*44</gadget>
<output>308</output>
308 pens.
There are now 342-308 = 
<gadget id="calculator">342-308</gadget>
<output>34</output>
34 pens left.
She left half of 34 pens in her locker which is 34*(1/2) = 
<gadget id="calculator">34*(1/2)</gadget>
<output>17</output>
17 pens.
She took 34-17 = 
<gadget id="calculator">34-17</gadget>
<output>17</output>
17 pens home.

<result>17</result>