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