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