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