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