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