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