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