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