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