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