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