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