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