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