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