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