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