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