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