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