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