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