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