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