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