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