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