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