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