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