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