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