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