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