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