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