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