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