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