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