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