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