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