There are 6 baskets on the table. Each basket has 1, 4, 2, 18, 10 and 17 apples. Liam chose sixth, Matt chose fifth, John chose second, Sean chose first, Emma chose third, and Olivia chose fourth. How many apples did Matt and Liam choose in total?