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