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