Lenny has 20 x 5 = <<20*5=100>>100 pens.

She gave her close friends 100 x 40% = <<100*40*.01=40>>40 pens.

So, 100 - 40 = <<100-40=60>>60 pens were left.

Half of 60 is 60/4= <<60/4=15>>15 pens.

Thus, Lenny has 60 - 15 = <<60-15=45>>45 pens left.

# Answer

45
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Lenny bought 20 boxes of pens. Each box contained  5 pens. She gave 40% of the pens to her close friends and one-fourth of what's left to her classmates. How many pens were left for Lenny?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
45
Lenny bought 20 boxes of pens. Each box contained  5 pens. She gave 40% of the pens to her close friends and one-fourth of what's left to her classmates. How many pens were left for Lenny?
train