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