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