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