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