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