She gave 7 pens each to 44 students for a total of 7*44 = <<7*44=308>>308 pens

There are now 342-308 = <<342-308=34>>34 pens left

She left half of 34 pens in her locker which is 34*(1/2) = <<34*(1/2)=17>>17 pens

She took 34-17 = <<34-17=17>>17 pens home

# Answer

17
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
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?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
17
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?
train