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