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