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