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