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