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