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