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