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