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