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