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