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