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