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