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