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