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