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