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