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