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