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