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