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