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