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