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