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