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