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