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