Bonnie and Samuel went to the market together. Bonnie bought 8 apples. Samuel bought 20 more apples than Bonnie. Samuel then ate half of them and used 1/7 of them to make apple pie. How many apples does Samuel have left?
Samuel bought 20+8 = 
<gadget id="calculator">20+8</gadget>
<output>28</output>
28 apples.
Samuel ate 28/2 = 
<gadget id="calculator">28/2</gadget>
<output>14</output>
14 apples.
Samuel used 28/7 = 
<gadget id="calculator">28/7</gadget>
<output>4</output>
4 to make apple pie.
Samuel has 28-14-4 = 
<gadget id="calculator">28-14-4</gadget>
<output>10</output>
10 apples left.

<result>10</result>