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