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