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