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