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