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