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