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