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