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