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=
<gadget id="calculator">2*2</gadget>
<output>4</output>
4 pencils.
The next 6 students bought 6*3=
<gadget id="calculator">6*3</gadget>
<output>18</output>
18 pencils.
The last two students bought 1+1=
<gadget id="calculator">1+1</gadget>
<output>2</output>
2 pencils.
In total the store sold 4+18+2=
<gadget id="calculator">4+18+2</gadget>
<output>24</output>
24 pencils.

<result>24</result>