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