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