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