Samuel bought 20+8 = <<20+8=28>>28 apples.
Samuel ate 28/2 = <<28/2=14>>14 apples.
Samuel used 28/7 = <<28/7=4>>4 to make apple pie.
Samuel has 28-14-4 = <<28-14-4=10>>10 apples left.
#### 10