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