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