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