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