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