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