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