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