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