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