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