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