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