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