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