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