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