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