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