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