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