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