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