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