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