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