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