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