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