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