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