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