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