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