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