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