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