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