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