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