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