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