The first students bought 2*2=<<2*2=4>>4 pencils

The next 6 students bought 6*3=<<6*3=18>>18 pencils

The last two students bought 1+1=<<1+1=2>>2 pencils

In total the store sold 4+18+2=<<4+18+2=24>>24 pencils

# Answer

24
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
The school store had a sale on pencils. Ten students bought pencils. The first two students bought 2 pencils each. The next six students bought three pencils each and the last two students only bought one pencil each. How many pencils were sold?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
24
The school store had a sale on pencils. Ten students bought pencils. The first two students bought 2 pencils each. The next six students bought three pencils each and the last two students only bought one pencil each. How many pencils were sold?
train