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