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