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