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