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