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