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