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