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