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