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