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