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