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