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