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