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