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