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