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