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