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