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