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