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