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