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