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