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