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