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