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