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