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