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