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