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