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