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