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