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