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