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