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