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