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