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