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