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?
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
#### 24
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
You are solving math problems. Here are some examples of how to solve the task:

There are 80 passengers on the airplane where the number of men and women is equal. The rest of the passengers are children. How many children are on the airplane if there are 30 men?Since the number of men and women is equal, then there are a total of 30 + 30 = <<30+30=60>>60 men and women.
Thus, 80 - 60 = <<80-60=20>>20 children are on the airplane.
#### 20[END]

Roy owns a refrigerated warehouse where he stores produce before selling it at the farmer’s market.  The fruits and vegetables he stores are very sensitive to temperature, and he must keep them all cold or they will spoil.  One day, the power went out and the air conditioner was turned off for three hours, during which time the temperature rose by 8 degrees per hour.  If Roy gets the power back on, it will activate the air conditioner to lower the temperature at the rate of 4 degrees F per hour.  What is the amount of time, in hours, it will take for the air conditioner to restore the warehouse to 43 degrees F?At a rate of 8 degrees per hour, in three hours the temperature rose by 3*8=<<3*8=24>>24 degrees.
At a rate of 4 degrees per hour, the air conditioner can reduce the temperature 24 degrees in 24/4=6 hours.
#### 6[END]

Now, solve this next question in the style of the above examples:

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?

### Response:
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
#### 24