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