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