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