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