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