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