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