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