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