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