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