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