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