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