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