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