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