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