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