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