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