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