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