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