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