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