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