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