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