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