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