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