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