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