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