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