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