###Human: 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?, ### Assistant: Samuel bought 20+8 = 28 apples.
Samuel ate 28/2 = 14 apples.
Samuel used 28/7 = 4 to make apple pie.
Samuel has 28-14-4 = 10 apples left. 
 So the answer is :  10