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