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