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