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