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