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