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