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