<human>:  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?
<bot>: How many pens did Sally give away? ** She gave 7 pens each to 44 students for a total of 7*44 = <<7*44=308>>308 pens
How many pens are left? ** There are now 342-308 = <<342-308=34>>34 pens left
How many pens did Sally leave in her locker? ** She left half of 34 pens in her locker which is 34*(1/2) = <<34*(1/2)=17>>17 pens
How many pens did Sally take home? ** She took 34-17 = <<34-17=17>>17 pens home
#### 17