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