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