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