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