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