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