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