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