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