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