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