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