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