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