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