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