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