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