Sam had twice the amount of John so Sam ate 3*2 = <<3*2=6>>6 slices
Together, they ate 3+6 = <<3+6=9>>9 slices
1 pizza has 12 slices. 9 slices were eaten so 12-9= <<12-9=3>>3 slices left.
#### 3