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