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