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