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