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