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