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