There are 6 baskets on the table. Each basket has 8, 10, 2, 9, 12 and 17 apples. Liam chose second, Matt chose sixth, Sean chose fifth, Emma chose third, John chose fourth, and Olivia chose first. How many more apples did John choose than Emma?