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