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