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