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