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