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