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