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