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