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