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