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