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