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