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