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