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