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