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