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