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